equal
deleted
inserted
replaced
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"); |