]> code.delx.au - pulseaudio/blobdiff - src/daemon/cmdline.c
log: Add support for the systemd journal
[pulseaudio] / src / daemon / cmdline.c
index 6361a3df5d07ae76844684b35277125c6b846552..0fa84920c6b003302ea48525fadf9749350020a9 100644 (file)
@@ -323,7 +323,11 @@ int pa_cmdline_parse(pa_daemon_conf *conf, int argc, char *const argv [], int *d
 
             case ARG_LOG_TARGET:
                 if (pa_daemon_conf_set_log_target(conf, optarg) < 0) {
+#ifdef HAVE_JOURNAL
+                    pa_log(_("Invalid log target: use either 'syslog', 'journal','stderr' or 'auto' or a valid file name 'file:<path>', 'newfile:<path>'."));
+#else
                     pa_log(_("Invalid log target: use either 'syslog', 'stderr' or 'auto' or a valid file name 'file:<path>', 'newfile:<path>'."));
+#endif
                     goto fail;
                 }
                 break;