From 245a92b091b754bfdb8a5d6bd4da470ead5aaa29 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 30 Jan 2012 00:23:37 +0100 Subject: [PATCH] Don't log to stdout if --syslog and/or --logfile are specified --- src/common/logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/logger.cpp b/src/common/logger.cpp index d9708f78..78a3610c 100644 --- a/src/common/logger.cpp +++ b/src/common/logger.cpp @@ -76,6 +76,9 @@ void Logger::log() { } syslog(LOG_USER & prio, "%s", qPrintable(_buffer)); } + // don't log to stdout if --syslog was specified (but neither ignore --logfile) + if(!Quassel::logFile()) + return; #endif _buffer.prepend(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss ")); -- 2.20.1