-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core): Convert verbose
to debug
logs
#10574
Conversation
@@ -40,7 +40,7 @@ export class WorkflowStatisticsController { | |||
if (workflow) { | |||
next(); | |||
} else { | |||
this.logger.verbose('User attempted to read a workflow without permissions', { | |||
this.logger.warn('User attempted to read a workflow without permissions', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a few cases it seemed appropriate to bump them up even higher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 Couple comments but not really related this PR so free to merge
|
||
verbose(message: string, meta: object = {}): void { | ||
this.log('verbose', message, meta); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -90,7 +90,7 @@ export class WorkflowStatisticsService extends TypedEmitter<WorkflowStatisticsEv | |||
} | |||
} | |||
} catch (error) { | |||
this.logger.verbose('Unable to fire first workflow success telemetry event'); | |||
this.logger.debug('Unable to fire first workflow success telemetry event'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we fire a sentry alert in cases like these? Nobody probably ever notices if the code ends up here and this might be hiding a bug. Not saying it should be done in this PR, but not delighted by this type of pattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, the workflow statistics service needs a lot of work. Let's do a follow-up.
@@ -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, | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: The error should be ForbiddenError
and not BadRequestError
. No need to fix now, just pointing out
✅ All Cypress E2E specs passed |
n8n
|
Project |
n8n
|
Branch Review |
verbose-to-debug-logs
|
Run status |
|
Run duration | 04m 37s |
Commit |
|
Committer | Iván Ovejero |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
1
|
|
0
|
|
0
|
|
421
|
View all changes introduced in this branch ↗︎ |
* master: ci: Fix provenance generation during NPM publish (no-changelog) (#10586) feat(core): Expose queue metrics for Prometheus (#10559) refactor(core): Map out pubsub messages (no-changelog) (#10566) fix: Fix scenario prefix not being passed (no-changelog) (#10575) refactor(core): Convert `verbose` to `debug` logs (#10574)
Got released with |
* master: (24 commits) feat(core): Switch to MJML for email templates (#10518) fix(Gmail Trigger Node): Don't return date instances, but date strings instead (#10582) fix(core): Deduplicate sentry events using error stacktraces instead (no-changelog) (#10590) feat(editor): Implement new app layout (#10548) refactor(core): Standardize filename casing for services and Public API (no-changelog) (#10579) 🚀 Release 1.57.0 (#10587) fix(editor): Add tooltips to workflow history button (#10570) ci: Fix provenance generation during NPM publish (no-changelog) (#10586) feat(core): Expose queue metrics for Prometheus (#10559) refactor(core): Map out pubsub messages (no-changelog) (#10566) fix: Fix scenario prefix not being passed (no-changelog) (#10575) refactor(core): Convert `verbose` to `debug` logs (#10574) refactor(core): Use `@/databases/` instead of `@db/` (no-changelog) (#10573) ci: Fix destroy benchmark env workflow (no-changelog) (#10572) feat: Add benchmarking of pooled sqlite (no-changelog) (#10550) refactor(editor): User journey link to n8n.io (#10331) fix(Wait Node): Prevent waiting until invalid date (#10523) refactor(core): Standardize filename casing for controllers and databases (no-changelog) (#10564) refactor(core): Allow custom types on getCredentials (no-changelog) (#10567) fix(editor): Scale output item selector input width with value (#10555) ... # Conflicts: # packages/editor-ui/src/stores/assistant.store.ts
As discussed here and here.