diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-31 00:59:22 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-31 00:59:22 +0200 |
commit | e2ca2159f6952db10ad35dc961e0fa51832033bc (patch) | |
tree | 1ac66ba85be8c7f569a8b132d02a8a1253387715 /luaotfload-override.lua | |
parent | 8b7adc199faee75515175e15b176ac168c09b467 (diff) | |
download | luaotfload-e2ca2159f6952db10ad35dc961e0fa51832033bc.tar.gz |
avoid duplication when logging to file and stdout
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r-- | luaotfload-override.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua index 19cd505..8e467d5 100644 --- a/luaotfload-override.lua +++ b/luaotfload-override.lua @@ -99,8 +99,9 @@ end local set_logout = function (s, finalizers) if s == "stdout" then - logout = "term" + logout = "redirect" elseif s == "file" then --- inject custom logger + logout = "redirect" local chan = choose_logfile () chan:write (stringformat ("logging initiated at %s", osdate ("%F %T", ostime ()))) @@ -224,7 +225,7 @@ local names_report = function (mode, lvl, ...) if loglevel >= lvl then if mode == "log" then log (...) - elseif mode == "both" and log ~= "stdout" then + elseif mode == "both" and logout ~= "redirect" then log (...) stdout (...) else |