aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2018-04-02 13:44:37 +0100
committerfishsoupisgood <github@madingley.org>2018-04-02 13:44:37 +0100
commitc9b8482030929f53937e32fce63c78a4a0acadfd (patch)
tree8be9975d6dc207b123011b7ce4c344503c9b5e53 /apps
parenta579468e37a003185329493eb8db2792204865fb (diff)
downloadsympathy-c9b8482030929f53937e32fce63c78a4a0acadfd.tar.gz
sympathy-c9b8482030929f53937e32fce63c78a4a0acadfd.tar.bz2
sympathy-c9b8482030929f53937e32fce63c78a4a0acadfd.zip
some fixes and support for syslog logging
Diffstat (limited to 'apps')
-rw-r--r--apps/sympathy.c7
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']);