summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-27 03:12:16 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-27 03:12:16 +0000
commite7c14bc707caacfc27a069ba30b8ffafb3c2d76d (patch)
tree950dd4c04d278dd30aa68e8c9eacf97562d334d1
parent8178f48cbc73c497a50c40cbd3db6ce640fa001c (diff)
downloadATCD-e7c14bc707caacfc27a069ba30b8ffafb3c2d76d.tar.gz
Changes related to setting the default options for thread and process
level debug priority masks.
-rw-r--r--ace/Service_Config.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/ace/Service_Config.cpp b/ace/Service_Config.cpp
index df2979c9c50..2621b79efa8 100644
--- a/ace/Service_Config.cpp
+++ b/ace/Service_Config.cpp
@@ -544,8 +544,10 @@ ACE_Service_Config::open_i (const ACE_TCHAR program_name[],
ACE_Log_Msg *log_msg = ACE_LOG_MSG;
// Record the current log setting upon entering this thread.
- int debugging_enabled =
- log_msg->log_priority_enabled (LM_DEBUG);
+ u_long old_process_mask = log_msg->priority_mask
+ (ACE_Log_Msg::PROCESS);
+ u_long old_thread_mask = log_msg->priority_mask
+ (ACE_Log_Msg::THREAD);
if (ACE_Service_Config::is_initialized_ != 0)
// Guard against reentrant processing!
@@ -647,11 +649,8 @@ ACE_Service_Config::open_i (const ACE_TCHAR program_name[],
{
// Reset debugging back to the way it was when we came into
// into <open_i>.
- if (debugging_enabled)
- ACE_Log_Msg::enable_debug_messages ();
- else
- // Debugging was off when we entered <open_i>.
- ACE_Log_Msg::disable_debug_messages ();
+ log_msg->priority_mask (old_process_mask, ACE_Log_Msg::PROCESS);
+ log_msg->priority_mask (old_thread_mask, ACE_Log_Msg::THREAD);
}
}