]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
logger: don't actually close the console logger
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 4 Jun 2021 14:44:03 +0000 (16:44 +0200)
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>
Sat, 5 Jun 2021 16:06:45 +0000 (18:06 +0200)
We nil the internal variable, but we should not close the logger itself,
since this leads to STDERR being closed and the interpreter reopening it
for its own needs, or something like that, which ultimately leads to
the interpreter's warning appearing in console (probably due to ruby
itself reopening stderr to be able to output the messages).

If we simply nil the variable, the interpreter is content with sending
us the messages per our shenanigangs, and everything works just as
expected.


No differences found