summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2001-12-02 00:44:49 +0000
committerSteve Huston <shuston@riverace.com>2001-12-02 00:44:49 +0000
commite05b03f7acd338620551456deacdd704dcdf610d (patch)
tree44e4d3305c697e92f8933bd708ce9a8f068fc550 /ace/Log_Msg.cpp
parentcbce80ff9cf7a29320c6b5a26ad7756a5a10c0bc (diff)
downloadATCD-e05b03f7acd338620551456deacdd704dcdf610d.tar.gz
ChangeLogTag:Sat Dec 1 19:39:22 2001 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 56ed32d7b7e..f2305b1b265 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -717,7 +717,9 @@ ACE_Log_Msg::open (const ACE_TCHAR *prog_name,
if (ACE_BIT_ENABLED (flags, ACE_Log_Msg::LOGGER)
|| ACE_BIT_ENABLED (flags, ACE_Log_Msg::SYSLOG))
{
- if (logger_key == 0)
+ // The SYSLOG backends (both NT and UNIX) can get along fine
+ // without the logger_key.
+ if (logger_key == 0 && ACE_BIT_ENABLED (flags, ACE_Log_Msg::LOGGER))
status = -1;
else
{