prosody
changeset 1557 64837ed2d112
parent 1532 9150aeca9755
child 1561 04442f3ebe40
equal deleted inserted replaced
1556:8154aa1fbe6c 1557:64837ed2d112
   104 				log("error", "There was an error parsing the configuration file: %s", tostring(err));
   104 				log("error", "There was an error parsing the configuration file: %s", tostring(err));
   105 			elseif level == "file" then
   105 			elseif level == "file" then
   106 				log("error", "Couldn't read the config file when trying to reload: %s", tostring(err));
   106 				log("error", "Couldn't read the config file when trying to reload: %s", tostring(err));
   107 			end
   107 			end
   108 		end
   108 		end
       
   109 		return ok, (err and tostring(level)..": "..tostring(err)) or nil;
   109 	end
   110 	end
   110 
   111 
   111 	-- Function to reopen logfiles
   112 	-- Function to reopen logfiles
   112 	function prosody.reopen_logfiles()
   113 	function prosody.reopen_logfiles()
   113 		log("info", "Re-opening log files");
   114 		log("info", "Re-opening log files");