-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Configure Startup logging #13464
Comments
These are emitted before the logging has been setup so will always appear. |
How can this be logged before logging is setup? Shouldn't logging be the first thing to setup, and then do the routing business? |
These are logged before the app.ini is read. Now ... You can argue that they shouldn't be there but they're actually surprisingly helpful for debugging a number of situations when users don't have things set-up correctly. (Not that people ever seem to read them...) |
I agree with the usefulness of these log messages, but having no built-in way of turning them off after gitea is running smoothly shows room for improvement. Anyways, I've modified my systemd service to just dump them to /dev/null.
I'll leave this issue open as a reminder. If devs feel a |
Would be great to get this sorted out as this breaks the line parsing feature in a central logging environment like ELK or Loki. The parsing pattern doesn't match when the format is different within a file or colorization comes into play. |
If you really do not want the initial 4 lines:
|
Gitea version (or commit ref): gitea 1.12.5-1
Git version: 2.29.2, Wire Protocol Version 2 Enabled
Operating system: Archlinux x86_64 with the
Database (use
[x]
):Can you reproduce the bug at https://try.gitea.io:
Log gist:
Description
No matter how i configure
[log]
gitea always prints the following lines to console/systemd journal. I cannot even change anything (disable color, flags, etc...)...
Screenshots
The text was updated successfully, but these errors were encountered: