Comparison

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
comparison
equal deleted inserted replaced
9760:88640b3ea6b8 9764:2f4240bfd147
85 85
86 function startup.init_logging() 86 function startup.init_logging()
87 -- Initialize logging 87 -- Initialize logging
88 local loggingmanager = require "core.loggingmanager" 88 local loggingmanager = require "core.loggingmanager"
89 loggingmanager.reload_logging(); 89 loggingmanager.reload_logging();
90 prosody.events.add_handler("config-reloaded", function ()
91 prosody.events.fire_event("reopen-log-files");
92 end);
90 prosody.events.add_handler("reopen-log-files", function () 93 prosody.events.add_handler("reopen-log-files", function ()
91 loggingmanager.reload_logging(); 94 loggingmanager.reload_logging();
92 prosody.events.fire_event("logging-reloaded"); 95 prosody.events.fire_event("logging-reloaded");
93 end); 96 end);
94 end 97 end