diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-02-18 17:02:13 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-02-18 17:31:19 +0000 |
commit | 95ba6fb18fedf7d0b9ff66a8f344c94dfe4a0632 (patch) | |
tree | dd798ac31fca707c4f1199e8da393261947b8eb4 | |
parent | cc3c343a59640f52886cb6ff71c96a7a70ea0996 (diff) | |
download | gitano-95ba6fb18fedf7d0b9ff66a8f344c94dfe4a0632.tar.gz |
Fatal should write contents of LogBuf to stderrbaserock/richardipsum/http_v3
-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 |