diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sympathy.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c index 8630679..1111450 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -831,7 +831,12 @@ main (int argc, char *argv[]) if (oflags['L']) { - ctx->l = file_log_new (oargs['L'], oflags['R']); + if (strcmp(oargs['L'],"syslog")) { + ctx->l = file_log_new (oargs['L'], oflags['R']); + } else { + ctx->l = syslog_log_new (LOG_WARNING); + } + ctx->byte_logging=oflags['B']; if (!ctx->l) fatal_moan ("unable to access log file %s", oargs['L']); |