Closed blysik closed 9 years ago
If you are using use_log_level_option
, you should be able to get the log level via logger.level
.
This assumes you have mixed-in CLILogging
.
@@logger
isn't set by methadone, so I'm not sure why it ever works for you
Re-open if you weren't able to get what you needed from logger.level
Sorry, forgot to update this. It works great. Simply doing:
if logger.level == 0
faraday.response :logger
end
So I get more debugging out of faraday, if I set debug in methadone. Thanks again.
I want to key an if statement off of --log-level debug being set.
I can't quite figure out what my code should be looking at.
If I use @@logger.level == 0, it works when debug is set. But if I don't set debug, it complains @@logger.level doesn't exist.