summaryrefslogtreecommitdiff
path: root/ace/Service_Config.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-27 03:22:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-27 03:22:57 +0000
commit016e8926a603229b6da449d70d127fdae243b35d (patch)
tree3ea5c0fc1451d848844f371331c3e0b620a64578 /ace/Service_Config.cpp
parentae733d2b055b8bcdb3654addb3ab4944d78089a3 (diff)
downloadATCD-016e8926a603229b6da449d70d127fdae243b35d.tar.gz
added support for -d in Service_Config files to enable/disable LM_DEBUG messages
Diffstat (limited to 'ace/Service_Config.cpp')
-rw-r--r--ace/Service_Config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ace/Service_Config.cpp b/ace/Service_Config.cpp
index a2730e2debc..cf4acb76967 100644
--- a/ace/Service_Config.cpp
+++ b/ace/Service_Config.cpp
@@ -461,6 +461,9 @@ ACE_Service_Config::open (const ASYS_TCHAR program_name[],
{
ACE_TRACE ("ACE_Service_Config::open");
+ // Clear the LM_DEBUG bit from log messages if appropriate
+ if (!ACE_Service_Config::debug_)
+ ACE_Log_Msg::disable_debug_messages();
// Become a daemon before doing anything else.
if (ACE_Service_Config::be_a_daemon_)
ACE_Service_Config::start_daemon ();