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
Log configuration is ignored #3728
Comments
It was fixed here https://github.com/verdaccio/verdaccio/releases/tag/v5.22.1 try out |
I'm still seeing logs printed to I'm using the Config Builder API and doing something like:
It still prints to |
Do you use Node_env === production ? Because is intended, Pino.js disable JSON prettify in production because is costly in resources. Prettify is cool for local development and low workload, for servers, never use prettify.
I'll double check that part, might be TS issue I did. |
It appears that in both cases, any For
I see levels For non-production (i.e., if I omit the
So there's definitely a difference in output between the two environments, but in both cases anything I enter for |
could you share which versions ? of each library |
Node: v16.20.2 |
Sorry the confusion :) is hard to keep improving new versions without break old ones. |
It's all good, your efforts are very much appreciated! Hopefully my comments help make verdaccio even better! I think there's two separate issues, would it be helpful to make new bug reports for them separately?
Regarding the typing issue, I've upgraded to
However, I do see
But I don't believe |
Thank u for the detailed feedback, I'll take notes, since I've been touching logging recently and I will release soon v6 will check this works properly before do it (besides other bugs are around 😅). |
Thanks! Let me know if I can provide any more assistance. |
I'm also seeing the log config being ignored and all logging going to stdout after upgrading to verdaccio 5.29.2. My environment:
and my config file contains:
|
I also tried 5.22.1, setting log level to trace directly in the config file results in no logging at all |
Looks like running in production mode and removing pretty |
Your Environment
Describe the bug
I configured the
log
part in theconfig.yaml
file expecting the log to be output to a file, but it is actually outputting to stdout anyway.I'm using Verdaccio in K8s and the rest of the configuration is just working fine, e.g.
web.title
, so I can confirm that it is not a mounting issue.To Reproduce
Deploy using the
verdaccio:5.21.1
image and configure thelog
part as I did in the configuration file below.Expected behavior
log to
/verdaccio/logs/pino.log
Screenshots, server logs, package manager log
From the logs, it appears that the logger is initialized before the configuration file is read, which may be the key.
Configuration File (cat ~/.config/verdaccio/config.yaml)
deployment.yaml
:config.yaml
:Environment information
$ DEBUG=verdaccio* verdaccio
enable extreme verdaccio debug mode (verdaccio api)$ npm -ddd
prints:$ npm config get registry
prints:-->
Contribute to Verdaccio
The text was updated successfully, but these errors were encountered: