stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
3.53k stars 135 forks source link

[bug]: 'reload-config' does not change log level #555

Closed EliRibble closed 4 days ago

EliRibble commented 6 days ago

What happened?

I set the server's tracer.log.level to debug. I got debug messages in the log (yay!). I then updated the config file to have tracer.log.level="info" and used stalwart-cli reload-config. It said Success.. I continued to get debug messages in the log (boo!)

How can we reproduce the problem?

Version

v0.8.x

What database are you using?

RocksDB

What blob storage are you using?

RocksDB

Where is your directory located?

None

What operating system are you using?

None

Relevant log output

$ stalwart-cl server reload-config
> Success.

Code of Conduct

mdecimus commented 4 days ago

Unfortunately this can't be fixed as we rely on the tracing library which does not allow changing the subscribers' configuration at runtime. This will be fixed in a few weeks once we switch to a different logging library.