util/startup.lua
changeset 8695 a55574754e5f
parent 8691 019b4b3dd5ad
child 8701 0499f3da0ec4
equal deleted inserted replaced
8694:564e2c63e0d4 8695:a55574754e5f
   227 			if level == "parser" then
   227 			if level == "parser" then
   228 				log("error", "There was an error parsing the configuration file: %s", tostring(err));
   228 				log("error", "There was an error parsing the configuration file: %s", tostring(err));
   229 			elseif level == "file" then
   229 			elseif level == "file" then
   230 				log("error", "Couldn't read the config file when trying to reload: %s", tostring(err));
   230 				log("error", "Couldn't read the config file when trying to reload: %s", tostring(err));
   231 			end
   231 			end
       
   232 		else
       
   233 			prosody.events.fire_event("config-reloaded", {
       
   234 				filename = prosody.config_file,
       
   235 				config = config.getconfig(),
       
   236 			});
   232 		end
   237 		end
   233 		return ok, (err and tostring(level)..": "..tostring(err)) or nil;
   238 		return ok, (err and tostring(level)..": "..tostring(err)) or nil;
   234 	end
   239 	end
   235 
   240 
   236 	-- Function to reopen logfiles
   241 	-- Function to reopen logfiles