Change some logging message from debug to trace
This commit is contained in:
parent
0910fbf1ec
commit
b663fdcc3f
@ -149,7 +149,7 @@ export class DevChatClient {
|
|||||||
const response = await this._get("/workflows/list");
|
const response = await this._get("/workflows/list");
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`getWorkflowList response data: \n${JSON.stringify(
|
`getWorkflowList response data: \n${JSON.stringify(
|
||||||
response.data
|
response.data
|
||||||
)}`
|
)}`
|
||||||
@ -162,7 +162,7 @@ export class DevChatClient {
|
|||||||
const response = await this._get("/workflows/config");
|
const response = await this._get("/workflows/config");
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`getWorkflowConfig response data: \n${JSON.stringify(
|
`getWorkflowConfig response data: \n${JSON.stringify(
|
||||||
response.data
|
response.data
|
||||||
)}`
|
)}`
|
||||||
@ -175,7 +175,7 @@ export class DevChatClient {
|
|||||||
const response = await this._post("/workflows/update");
|
const response = await this._post("/workflows/update");
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`updateWorkflows response data: \n${JSON.stringify(
|
`updateWorkflows response data: \n${JSON.stringify(
|
||||||
response.data
|
response.data
|
||||||
)}`
|
)}`
|
||||||
@ -207,7 +207,7 @@ export class DevChatClient {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
const chatRes: ChatResponse = {
|
const chatRes: ChatResponse = {
|
||||||
"prompt-hash": "", // TODO: prompt-hash is not in chatting response
|
"prompt-hash": "", // prompt-hash is not in chatting response, it is created in the later insertLog()
|
||||||
user: "",
|
user: "",
|
||||||
date: "",
|
date: "",
|
||||||
response: "",
|
response: "",
|
||||||
@ -295,7 +295,7 @@ export class DevChatClient {
|
|||||||
const response = await this._post("/logs/insert", body);
|
const response = await this._post("/logs/insert", body);
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`insertLog response data: ${JSON.stringify(
|
`insertLog response data: ${JSON.stringify(
|
||||||
response.data
|
response.data
|
||||||
)}, ${typeof response.data}}`
|
)}, ${typeof response.data}}`
|
||||||
@ -325,7 +325,7 @@ export class DevChatClient {
|
|||||||
const response = await this._post("/logs/delete", data);
|
const response = await this._post("/logs/delete", data);
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`deleteLog response data: ${JSON.stringify(
|
`deleteLog response data: ${JSON.stringify(
|
||||||
response.data
|
response.data
|
||||||
)}, ${typeof response.data}}`
|
)}, ${typeof response.data}}`
|
||||||
@ -360,7 +360,7 @@ export class DevChatClient {
|
|||||||
|
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(`getTopicLogs response data: ${JSON.stringify(logs)}`);
|
?.trace(`getTopicLogs response data: ${JSON.stringify(logs)}`);
|
||||||
|
|
||||||
return logs;
|
return logs;
|
||||||
}
|
}
|
||||||
@ -381,7 +381,7 @@ export class DevChatClient {
|
|||||||
|
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(`getTopics response data: ${JSON.stringify(topics)}`);
|
?.trace(`getTopics response data: ${JSON.stringify(topics)}`);
|
||||||
|
|
||||||
return topics;
|
return topics;
|
||||||
}
|
}
|
||||||
@ -397,7 +397,7 @@ export class DevChatClient {
|
|||||||
|
|
||||||
logger
|
logger
|
||||||
.channel()
|
.channel()
|
||||||
?.debug(
|
?.trace(
|
||||||
`deleteTopic response data: ${JSON.stringify(response.data)}`
|
`deleteTopic response data: ${JSON.stringify(response.data)}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user