Software /
code /
prosody
Diff
core/loggingmanager.lua @ 2168:1a99a3bf3ce6 0.6.0
Merge with 0.6 on prosody.im
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 05:11:10 +0000 |
parent | 2139:625b2d3e8900 |
child | 2586:26ead5e16cd3 |
child | 2922:0ea2ed371fb2 |
line wrap: on
line diff
--- a/core/loggingmanager.lua Wed Nov 25 03:30:00 2009 +0000 +++ b/core/loggingmanager.lua Wed Nov 25 05:11:10 2009 +0000 @@ -17,6 +17,12 @@ local os_date, os_getenv = os.date, os.getenv; local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; +if os.getenv("__FLUSH_LOG") then + local io_flush = io.flush; + local _io_write = io_write; + io_write = function(...) _io_write(...); io_flush(); end +end + local config = require "core.configmanager"; local eventmanager = require "core.eventmanager"; local logger = require "util.logger";