diff options
-rw-r--r-- | ChangeLog-99b | 4 | ||||
-rw-r--r-- | netsvcs/lib/Client_Logging_Handler.cpp | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index b0b30fdaf16..f454d404000 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,5 +1,9 @@ Tue Mar 23 12:57:40 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu> + * netsvcs/lib/Client_Logging_Handler.cpp: Split off the logging to + an ostream from the logging for STDERR. Thanks to Bill Rizzi + (rizzi@softserv.com) for pointing out this problem. + * netsvcs/lib/Client_Logging_Handler.cpp: Changed the default from ACE_STDOUT to ACE_STDERR to be consistent. Thanks to Bill Rizzi (rizzi@softserv.com) for pointing out the problem. diff --git a/netsvcs/lib/Client_Logging_Handler.cpp b/netsvcs/lib/Client_Logging_Handler.cpp index 2ce9dcfad18..5cc31341df3 100644 --- a/netsvcs/lib/Client_Logging_Handler.cpp +++ b/netsvcs/lib/Client_Logging_Handler.cpp @@ -216,14 +216,7 @@ int ACE_Client_Logging_Handler::send (ACE_Log_Record &log_record) { if (this->logging_output_ == ACE_STDERR) - { - log_record.print ("<localhost>", 0, stderr); - ostream *orig_ostream = ACE_Log_Msg::instance ()->msg_ostream (); - if (orig_ostream) - log_record.print ("<localhost>", - 0, - *orig_ostream); - } + log_record.print ("<localhost>", 0, stderr); else { long len = log_record.length (); @@ -238,6 +231,13 @@ ACE_Client_Logging_Handler::send (ACE_Log_Record &log_record) // reconnect to the logging server. this->logging_output_ = ACE_STDERR; } + + ostream *orig_ostream = ACE_Log_Msg::instance ()->msg_ostream (); + + if (orig_ostream) + log_record.print ("<localhost>", + 0, + *orig_ostream); return 0; } |