-
Notifications
You must be signed in to change notification settings - Fork 4k
refactor(api-service): logger to pinologger #8128
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(api-service): logger to pinologger #8128
Conversation
…ion' of github.com:novuhq/novu into nv-5651-investigate-why-log-levels-dont-work-in-production
…ion' into nv-5651-api-refactor-logger-to-pinologger
import { createNestLoggingModuleOptions, PinoLogger } from '@novu/application-generic'; | ||
import packageJson from '../../../../package.json'; | ||
|
||
export const getLogger = (context: string) => { |
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 this come from the application generic so we can reuse in the worker if needed?
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.
will definitely move it once we do the same to the apps, for now i kept it close.
apps/api/src/app/workflows-v2/usecases/get-workflow/get-workflow.usecase.ts
Outdated
Show resolved
Hide resolved
|
||
if (process.env.LOGGING_LEVEL || process.env.LOG_LEVEL) { | ||
logLevel = process.env.LOGGING_LEVEL || process.env.LOG_LEVEL; |
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 this be reversed? like
logLevel = process.env.LOGGING_LEVEL || process.env.LOG_LEVEL; | |
logLevel = process.env.LOG_LEVEL || process.env.LOGGING_LEVEL; |
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.
its not about priority here, so any value should be fine, it's meant to be only kept for some time to support backward the old environment variable.
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
…messages e2e test
…idgeRequest use case
…m:novuhq/novu into nv-5651-api-refactor-logger-to-pinologger
…ved logging verification
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer