refactor(core): Convert verbose to debug logs (#10574)

This commit is contained in:
Iván Ovejero
2024-08-28 09:32:53 +02:00
committed by GitHub
parent ab9835126e
commit bc958be93b
54 changed files with 68 additions and 74 deletions

View File

@@ -1954,7 +1954,7 @@ export function getAdditionalKeys(
if (mode === 'manual') {
throw e;
}
Logger.verbose(e.message);
Logger.debug(e.message);
}
},
setAll(obj: Record<string, string>): void {
@@ -1964,7 +1964,7 @@ export function getAdditionalKeys(
if (mode === 'manual') {
throw e;
}
Logger.verbose(e.message);
Logger.debug(e.message);
}
},
get(key: string): string {

View File

@@ -794,7 +794,7 @@ export class WorkflowExecute {
// active executions anymore
// eslint-disable-next-line @typescript-eslint/promise-function-async
processRunExecutionData(workflow: Workflow): PCancelable<IRun> {
Logger.verbose('Workflow execution started', { workflowId: workflow.id });
Logger.debug('Workflow execution started', { workflowId: workflow.id });
const startedAt = new Date();
const forceInputNodeExecution = this.forceInputNodeExecution(workflow);
@@ -1804,7 +1804,7 @@ export class WorkflowExecute {
const fullRunData = this.getFullRunData(startedAt);
if (executionError !== undefined) {
Logger.verbose('Workflow execution finished with error', {
Logger.debug('Workflow execution finished with error', {
error: executionError,
workflowId: workflow.id,
});
@@ -1818,13 +1818,13 @@ export class WorkflowExecute {
}
} else if (this.runExecutionData.waitTill!) {
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
Logger.verbose(`Workflow execution will wait until ${this.runExecutionData.waitTill}`, {
Logger.debug(`Workflow execution will wait until ${this.runExecutionData.waitTill}`, {
workflowId: workflow.id,
});
fullRunData.waitTill = this.runExecutionData.waitTill;
fullRunData.status = 'waiting';
} else {
Logger.verbose('Workflow execution finished successfully', { workflowId: workflow.id });
Logger.debug('Workflow execution finished successfully', { workflowId: workflow.id });
fullRunData.finished = true;
fullRunData.status = 'success';
}