summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-05-29 17:20:50 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-05-29 18:47:03 +0200
commit0368e8c09385a6c49e0d59cd6162675057e5b339 (patch)
treee24a358fd2f499e1230001970800c4736295bc46 /lib
parentfcbe2a81573046c4381d72c1b294002cbd68b47c (diff)
fix: preserve loglevels across options and files
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/logger.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/logger.rb b/lib/rbot/logger.rb
index 1598f7bd..b5f615d7 100644
--- a/lib/rbot/logger.rb
+++ b/lib/rbot/logger.rb
@@ -29,6 +29,7 @@ class Bot
def set_logfile(filename, keep, max_size)
@file_logger = Logger.new(filename, keep, max_size*1024*1024)
@file_logger.datetime_format = @dateformat
+ @file_logger.level = @logger.level
end
def set_level(level)