diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/ircbot.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index a1713c2d..108d0b1d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -66,6 +66,10 @@ def rawlog(level, message=nil, who_pos=1) qmsg.push [level, l.chomp, who] who = ' ' * who.size } + # Also output (fatal) errors to STDERR: + if level == Logger::Severity::ERROR or level == Logger::Severity::FATAL + $stderr.puts str + end $log_queue.push qmsg end |