summaryrefslogtreecommitdiff
path: root/netsvcs
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-05-19 14:05:12 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-05-19 14:05:12 +0000
commit96ff2a76e2c5a824bc3a46cc75302c9c05eb5f26 (patch)
tree782a50b8d95160ec5dc90b77bb0722189a4256b8 /netsvcs
parentf92d5670843c0a1012662a7a4c040107157d29ce (diff)
downloadATCD-96ff2a76e2c5a824bc3a46cc75302c9c05eb5f26.tar.gz
ChangeLogTag: Wed May 18 14:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/clients/Logger/indirect_logging.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/netsvcs/clients/Logger/indirect_logging.cpp b/netsvcs/clients/Logger/indirect_logging.cpp
index 3e213c8d676..e5e2e028e29 100644
--- a/netsvcs/clients/Logger/indirect_logging.cpp
+++ b/netsvcs/clients/Logger/indirect_logging.cpp
@@ -20,7 +20,8 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_OS::srand ((u_int) ACE_OS::time (0));
- ACE_LOG_MSG->open (prog_name, ACE_Log_Msg::LOGGER, logger_key);
+ if (ACE_LOG_MSG->open (prog_name, ACE_Log_Msg::LOGGER, logger_key) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "Cannot open logger\n"), -1);
ACE_DEBUG ((LM_STARTUP, "starting up the test\n"));