summaryrefslogtreecommitdiff
path: root/netsvcs
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-23 19:49:00 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-23 19:49:00 +0000
commit521a5a3488c594588ea5f432e9152fd254e94ee6 (patch)
tree76a91f08b1b27504e164aae76a99360fdbcd3ebb /netsvcs
parent33d1a73ffd9c205af4591fdf442228a23a02d685 (diff)
downloadATCD-521a5a3488c594588ea5f432e9152fd254e94ee6.tar.gz
.
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/lib/Client_Logging_Handler.cpp16
1 files changed, 8 insertions, 8 deletions
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;
}