refactor(core): Convert verbose to debug logs (#10574)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user