nickva commented on issue #4815:
URL: https://github.com/apache/couchdb/issues/4815#issuecomment-1791518288

   >  Our issue is we want to keep log as "error" and need compaction 
information by setting compaction_log_level to info or notice
   
   See my comment above: 
https://github.com/apache/couchdb/issues/4815#issuecomment-1773335087
   Try setting both to `error` and see if you see any emitted logs if your log 
level is `error`
   
   When you set `[log] level = error` you're saying "I don't want to log 
anything with a level lower than `error`". Then setting `compaction_log_level` 
to `info` or `warning`, unsurprisingly, won't show up in your logs.
   
   Notice how logging work here: 
   
   
https://github.com/apache/couchdb/blob/e9d703c2139cdb695259c814c79f041e6864b81e/src/smoosh/src/smoosh_channel.erl#L168-L172
   
   `compaction_log_level = info` there would effectively call 
`couch_log:info("....")`, so that won't show up in your log unless you turned 
you log level all the way down to info.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to