always print FATAL and ERROR logmessages to STDERR apoc/ssl-verify
authorMatthias Hecker <apoc@sixserv.org>
Thu, 14 Nov 2013 13:41:16 +0000 (13:41 +0000)
committerMatthias Hecker <apoc@sixserv.org>
Thu, 14 Nov 2013 13:41:16 +0000 (13:41 +0000)
commitc4d629ad86aae3b8bb4669650df57875252bea92
treebf0b1408052b13b9b0b05c6662dd802b700b29ca
parent85ee9672fce67d95bf8310af331a576f3492b863
always print FATAL and ERROR logmessages to STDERR

This adds a print to $stderr for log messages with the
level ERROR or FATAL. I did this because in the past errors
connecting to the server weren't immediately obvious but
rather hidden in the logfile. I think it should be right
in-your-face when the connection doesn't work.

It would probaply be better to extend Logger to print
to STDERR but this apparently requires monkeypatching ruby's
Logger. Anyhow I think my solution works for now.
lib/rbot/ircbot.rb