Move some INFO logging into a permanent log state
Requirements
- [X] Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
- [X] Did you check to see if this issue already exists?
- [X] Is this only a feature request? Do not put multiple feature requests in one issue.
- [X] Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
- [X] Do you agree to follow the rules in our Code of Conduct?
Is your proposal related to a problem?
Certain log items are in INFO, specifically related to DB and upgrades, that should be output regardless of log mode. The example I have is this line:
INFO lemmy_db_schema::utils: Running Database migrations (This may take a long time)...
INFO lemmy_db_schema::utils: Database migrations complete.
Log items like these, that dictate the state of the system, should be output all the time, no matter what RUST_LOG is set to. For me, this led to a lot of debugging vs just being patient, since lemmy-ui didn't show that migrations were running (I only noticed from inspecting API calls to the INBOX that the Lemmy backend was reporting startup). I can imagine others could run into the same issue.
There may be other areas this makes sense, but this one is a clear one (to me, anyway).
Describe the solution you'd like.
Migration related log items, or any items that delay startup, should be logged no matter what RUST_LOG is set to.
Describe alternatives you've considered.
Running info all the time. This seems overkill.
Additional context
No response
There's a lot of logs that shouldn't have info level, especially in request handlers.