diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2021-05-29 17:20:50 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2021-05-29 18:47:03 +0200 |
commit | 0368e8c09385a6c49e0d59cd6162675057e5b339 (patch) | |
tree | e24a358fd2f499e1230001970800c4736295bc46 /bin/rbot | |
parent | fcbe2a81573046c4381d72c1b294002cbd68b47c (diff) |
fix: preserve loglevels across options and files
Diffstat (limited to 'bin/rbot')
-rwxr-xr-x | bin/rbot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -114,7 +114,7 @@ end if(bot = Irc::Bot.new(ARGV.shift, :argv => orig_opts)) # setup logger based on command line arguments loglevel = $opts['loglevel'] ? $opts['loglevel'].to_i : nil - loglevel = $opts['debug'] ? 0 : nil + loglevel = $opts['debug'] ? 0 : loglevel if loglevel Irc::Bot::LoggerManager.instance.set_level(loglevel) end |