jester
jester copied to clipboard
Too verbose by default
Personally, i find the print on start:
INFO Jester is making jokes at http://0.0.0.0:5000
to be undesirable by default, is there some way to disable it?
I've tried the suggested workaround at https://forum.nim-lang.org/t/4352, but it doesn't seem to work.
Thanks.
That should work, you need that line before any routes though, where are you placing it?
I put logging.setLogFilter(lvlNotice)
immediately before routes:
and the message above still appears, as well as debug level messages generated on requests.
I don't know if this is a confirmation of what ggibson said on the forum, or not.
Presuming the above fix worked, what if i also want to use logging
in my binary. Is there a way to modify the log level for jester
only, leaving log messages in the parent code intact?
Ahh, seems Jester sets the log level: https://github.com/dom96/jester/blob/master/jester.nim#L455
Happy to accept a PR that changes this I guess