summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-02-18 17:02:13 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-03-06 15:08:49 +0000
commitf0822b03e200b808588e5a016d188d179f9c0432 (patch)
treefb204bdb229601c36aa470902fa7ee1a32f11595
parentc1c99359b03c099048ac4fc5bbeb48d672d56d62 (diff)
downloadgitano-f0822b03e200b808588e5a016d188d179f9c0432.tar.bz2
Fatal should write contents of LogBuf to stderr
-rw-r--r--lib/gitano/log.lua4
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