-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: ensure every log file has at least one record #1414
Conversation
I will check it later, but, I am rethinking about file rotation in the next major release next year and remove such support. Thoughts ? |
Why would you want to remove that? IMO, it's a great and useful feature! This issue comes up without file rotate also, hence the |
There is a issue, the message get printed twice on startup with the default config. |
Not sure if that's a bug. The issue is that in the default logging, we call setup twice and both happen to output to the same place (console). First in |
It is a design decision by my predecesor. Since we have this in in progress #1334 I wouldn't no change that. I'll add it to the check list, but better don't do it in this PR. Logger will change soon or later, I agree there are pitfalls like that one you described. |
So what should we do to move this forward? |
I was waiting your comments, but we need to remove |
The above comment has been fixed |
Is there anything else that should be fixed? |
hi @mlucool I could not test it yet, completely forgot it. perhaps cc: @verdaccio/collaborators can help checking this to ship it asap, or maybe me a long the week. |
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.
👍 now works fine 👍
warn --- config file - /Users/xxxx/.config/verdaccio/config.yaml
warn --- Verdaccio started
warn --- Plugin successfully loaded: verdaccio-htpasswd
warn --- Plugin successfully loaded: verdaccio-audit
warn --- http address - http://localhost:4873/ - verdaccio/4.2.2
🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. |
Type: feature
The following has been addressed in the PR:
Description:
Sometimes logs are empty if no one tries to access verdaccio. This is especially with logrotate where no one may access it over a period of time. This commit ensures every log has at least one message in it (assuming
warn
or above level of logging).