Comparison

core/loggingmanager.lua @ 7138:ae1d53c2f598

loggingmanager: Remove Windows hack, buffer_mode should fix this
author Kim Alvefur <zash@zash.se>
date Thu, 04 Feb 2016 18:40:24 +0100
parent 7137:4a5619a87b44
child 7139:2f9088c663c6
comparison
equal deleted inserted replaced
7137:4a5619a87b44 7138:ae1d53c2f598
13 local stdout = io.stdout; 13 local stdout = io.stdout;
14 local io_open = io.open; 14 local io_open = io.open;
15 local math_max, rep = math.max, string.rep; 15 local math_max, rep = math.max, string.rep;
16 local os_date = os.date; 16 local os_date = os.date;
17 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; 17 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring;
18
19 -- COMPAT: This should no longer be needed since the addition of setvbuf calls
20 if os.getenv("__FLUSH_LOG") then
21 local io_flush = io.flush;
22 local _io_write = io_write;
23 io_write = function(...) _io_write(...); io_flush(); end
24 end
25 18
26 local config = require "core.configmanager"; 19 local config = require "core.configmanager";
27 local logger = require "util.logger"; 20 local logger = require "util.logger";
28 local prosody = prosody; 21 local prosody = prosody;
29 22