From f0822b03e200b808588e5a016d188d179f9c0432 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Tue, 18 Feb 2014 17:02:13 +0000 Subject: Fatal should write contents of LogBuf to stderr --- lib/gitano/log.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1