Software /
code /
prosody
Diff
util/startup.lua @ 9764:2f4240bfd147
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Jan 2019 12:18:48 +0100 |
parent | 9762:34988a408b74 |
child | 9873:dfaeea570f7e |
child | 10389:dbb8dae58265 |
line wrap: on
line diff
--- a/util/startup.lua Sun Jan 06 10:42:45 2019 +0100 +++ b/util/startup.lua Sun Jan 06 12:18:48 2019 +0100 @@ -87,6 +87,9 @@ -- Initialize logging local loggingmanager = require "core.loggingmanager" loggingmanager.reload_logging(); + prosody.events.add_handler("config-reloaded", function () + prosody.events.fire_event("reopen-log-files"); + end); prosody.events.add_handler("reopen-log-files", function () loggingmanager.reload_logging(); prosody.events.fire_event("logging-reloaded");