diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/logger.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/logger.rb b/lib/rbot/logger.rb index 4189151c..494324d9 100644 --- a/lib/rbot/logger.rb +++ b/lib/rbot/logger.rb @@ -21,7 +21,6 @@ class Bot end def disable_console_logger - @console_logger.close if @console_logger @console_logger = nil end @@ -84,6 +83,8 @@ class Bot end def log_session_start + # if we forked, the thread may be dead, so let's restart it if necessary + start_thread if @file_logger @file_logger << "\n\n=== session started on #{Time.now.strftime(@dateformat)} ===\n\n" end |