fixing syslog settings

This commit is contained in:
Axel Kittenberger 2011-03-03 10:55:04 +00:00
parent 26f0583dca
commit f06dc066be
2 changed files with 2 additions and 2 deletions

View File

@ -1164,7 +1164,7 @@ l_configure(lua_State *L)
* from this on log to configurated log end instead of
* stdout/stderr */
running = true;
if (settings.log_syslog) {
if (settings.log_syslog || !settings.log_file) {
openlog(settings.log_ident ? settings.log_ident : "lsyncd",
0,
settings.log_facility

View File

@ -2773,7 +2773,7 @@ function runner.initialize()
lsyncd.configure("logfile", settings.logfile)
end
if settings.logident then
lsyncd.condigure("logident", settings.logident)
lsyncd.configure("logident", settings.logident)
end
if settings.logfacility then
lsyncd.configure("logfacility", settings.logfacility)