aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-26 22:30:52 +0200
committerKim Alvefur <zash@zash.se>2017-10-26 22:30:52 +0200
commit4c39528a445dd5911e91b183c24a42febf0b840b (patch)
treef9600eed116ded5917b04fddeb1b9637863a1103 /core/loggingmanager.lua
parentc42b40b07d333623192e9f4747471aa07ec9a0b0 (diff)
downloadprosody-4c39528a445dd5911e91b183c24a42febf0b840b.tar.gz
prosody-4c39528a445dd5911e91b183c24a42febf0b840b.zip
loggingmanager: Make timestamps enabled by default in file sink (fixes #1004)
Diffstat (limited to 'core/loggingmanager.lua')
-rw-r--r--core/loggingmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index 6dc1c1d1..004f4c3b 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -178,7 +178,7 @@ local function log_to_file(sink_config, logfile)
local timestamps = sink_config.timestamps;
- if timestamps == true then
+ if timestamps == true or timestamps == nil then
timestamps = default_timestamp; -- Default format
elseif timestamps then
timestamps = timestamps .. " ";