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

@@ -194,7 +194,7 @@ export class EnterpriseWorkflowService {
nodesWithCredentialsUserDoesNotHaveAccessTo.forEach((node) => {
if (isTamperingAttempt(node.id)) {
this.logger.verbose('Blocked workflow update due to tampering attempt', {
this.logger.warn('Blocked workflow update due to tampering attempt', {
nodeType: node.type,
nodeName: node.name,
nodeId: node.id,

View File

@@ -96,7 +96,7 @@ export class WorkflowService {
]);
if (!workflow) {
this.logger.verbose('User attempted to update a workflow without permissions', {
this.logger.warn('User attempted to update a workflow without permissions', {
workflowId,
userId: user.id,
});
@@ -120,7 +120,7 @@ export class WorkflowService {
// Update the workflow's version when changing properties such as
// `name`, `pinData`, `nodes`, `connections`, `settings` or `tags`
workflowUpdateData.versionId = uuid();
this.logger.verbose(
this.logger.debug(
`Updating versionId for workflow ${workflowId} for user ${user.id} after saving`,
{
previousVersionId: workflow.versionId,

View File

@@ -309,7 +309,7 @@ export class WorkflowsController {
);
if (!workflow) {
this.logger.verbose('User attempted to access a workflow without permissions', {
this.logger.warn('User attempted to access a workflow without permissions', {
workflowId,
userId: req.user.id,
});
@@ -362,7 +362,7 @@ export class WorkflowsController {
const workflow = await this.workflowService.delete(req.user, workflowId);
if (!workflow) {
this.logger.verbose('User attempted to delete a workflow without permissions', {
this.logger.warn('User attempted to delete a workflow without permissions', {
workflowId,
userId: req.user.id,
});