logger: fix STDERR recursion
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 2 Jun 2021 18:57:21 +0000 (20:57 +0200)
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>
Sat, 5 Jun 2021 16:06:45 +0000 (18:06 +0200)
commit03d0839fa48fd9424b7a968986e96b7e69e84d25
tree86e042cf3baf2ec54be17599a748123eafdc6ec8
parentbfa60f1846df4cc8d1713c0143477fea791da87c
logger: fix STDERR recursion

Overriding (as we should do) the standard error write method when
daemonizing introduces a recursion in the logger, due to the
persistent presence of the console logger.

The solution is obviously to stop logging on console
after daemonization.
lib/rbot/ircbot.rb
lib/rbot/logger.rb