diff options
author | Azul <azul@riseup.net> | 2016-09-30 12:03:36 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-30 12:03:44 +0200 |
commit | 3242f3f2e4eac9e3e38b1ba4da069475872a270b (patch) | |
tree | 0aa1ee8b6474ccd624dcd639ae3680d278712519 /lib/nickserver | |
parent | 8ee1d1cb70bee8c938966e4e042b4929ced8b1a3 (diff) |
logger: log to STDOUT when run in foreground
Diffstat (limited to 'lib/nickserver')
-rw-r--r-- | lib/nickserver/daemon.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nickserver/daemon.rb b/lib/nickserver/daemon.rb index 0f9e7bf..12ed30e 100644 --- a/lib/nickserver/daemon.rb +++ b/lib/nickserver/daemon.rb @@ -256,6 +256,7 @@ module Nickserver puts "\nShutting down..." exit(0) end + Config.log_file = STDOUT yield exit(0) end |