From c9b8482030929f53937e32fce63c78a4a0acadfd Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 2 Apr 2018 13:44:37 +0100 Subject: some fixes and support for syslog logging --- apps/sympathy.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps') 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']); -- cgit v1.2.3