From 2a03358b3e17b0c253a665bd460f46914b7b3666 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Tue, 18 Feb 2014 23:06:42 +0100 Subject: [PATCH] log fatal/error messages to stderr, but check if daemonized first! --- lib/rbot/ircbot.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 311334b5..53235edb 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -67,6 +67,9 @@ def rawlog(level, message=nil, who_pos=1) qmsg.push [level, l.chomp, who] who = ' ' * who.size } + if level == Logger::Severity::ERROR or level == Logger::Severity::FATAL and not $daemonize + $stderr.puts str + end $log_queue.push qmsg end -- 2.39.2