mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
fixing syslog settings
This commit is contained in:
parent
26f0583dca
commit
f06dc066be
2
lsyncd.c
2
lsyncd.c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user