diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-02-18 17:02:13 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-03-06 15:08:49 +0000 |
commit | f0822b03e200b808588e5a016d188d179f9c0432 (patch) | |
tree | fb204bdb229601c36aa470902fa7ee1a32f11595 | |
parent | c1c99359b03c099048ac4fc5bbeb48d672d56d62 (diff) | |
download | gitano-f0822b03e200b808588e5a016d188d179f9c0432.tar.gz |
Fatal should write contents of LogBuf to stderr
-rw-r--r-- | lib/gitano/log.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitano/log.lua b/lib/gitano/log.lua index 34a7dd1..e1df00b 100644 --- a/lib/gitano/log.lua +++ b/lib/gitano/log.lua @@ -147,7 +147,9 @@ local function fatal(...) syslog_write(luxio.LOG_CRIT, ...) AT(ERRS, "FATAL:", ...) - if not is_buffered_output() then + if is_buffered_output() then + sio.stderr:write(get_buffered_output()) + else stream:close() end |