summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-09-13 13:00:16 +0000
committerAlan Conway <aconway@apache.org>2011-09-13 13:00:16 +0000
commit15e875512cf43b6e8bdeb65740554aed9841afe7 (patch)
tree869c10d728140b97b1b2d84d737dc37c2822b2c4
parent8e72ac2bd59eef91061baac6355708a1cb922ac7 (diff)
downloadqpid-python-15e875512cf43b6e8bdeb65740554aed9841afe7.tar.gz
QPID-3482: Unable to switch off logging to syslog when qpidd runs as daemon
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1170164 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/log/posix/SinkOptions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/posix/SinkOptions.cpp b/cpp/src/qpid/log/posix/SinkOptions.cpp
index 292e9147f6..ffa7633e3b 100644
--- a/cpp/src/qpid/log/posix/SinkOptions.cpp
+++ b/cpp/src/qpid/log/posix/SinkOptions.cpp
@@ -180,7 +180,7 @@ qpid::log::SinkOptions& SinkOptions::operator=(const qpid::log::SinkOptions& rhs
}
void SinkOptions::detached(void) {
- if (logToStderr && !logToStdout && !logToSyslog) {
+ if (logToStderr && !logToStdout && !logToSyslog && logFile.empty()) {
logToStderr = false;
logToSyslog = true;
}