summaryrefslogtreecommitdiff
path: root/cpp/src
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
commitda6967bb04de7d6334a6d7e202400473f76e5c5e (patch)
tree869c10d728140b97b1b2d84d737dc37c2822b2c4 /cpp/src
parent1cef54c4658d91f5e30da4572c423431fa20bcdc (diff)
downloadqpid-python-da6967bb04de7d6334a6d7e202400473f76e5c5e.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
Diffstat (limited to 'cpp/src')
-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;
}