summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-10 13:31:36 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-10 13:31:36 +0000
commitf3e7a5e4aa285b3366ad35b123cb857dc70b59f6 (patch)
tree37c04f581742c095a59a4ee00bd1f60f07aaf971 /ace
parent88e27eaaae03654411e10c54a19466e729eccd58 (diff)
downloadATCD-f3e7a5e4aa285b3366ad35b123cb857dc70b59f6.tar.gz
ChangeLogTag: Tue Jul 10 08:26:57 2001 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ace')
-rw-r--r--ace/Log_Msg_UNIX_Syslog.cpp4
-rw-r--r--ace/config-chorus.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/ace/Log_Msg_UNIX_Syslog.cpp b/ace/Log_Msg_UNIX_Syslog.cpp
index 6c935d88213..b933dc1d57e 100644
--- a/ace/Log_Msg_UNIX_Syslog.cpp
+++ b/ace/Log_Msg_UNIX_Syslog.cpp
@@ -48,7 +48,9 @@ ACE_Log_Msg_UNIX_Syslog::open (const ACE_TCHAR * /*logger_key*/)
// the log() method, or use the system's syslog.conf file to select
// desired level of information.
+#if !defined (ACE_LACKS_SETLOGMASK)
(void) setlogmask (LOG_UPTO (LOG_DEBUG));
+#endif /* ACE_LACKS_SETLOGMASK */
return 0;
}
@@ -89,7 +91,7 @@ ACE_Log_Msg_UNIX_Syslog::log (ACE_Log_Record &log_record)
// timestamp is duplicated (albeit a shortened version) to
// provide a timestamp with greater precision than that provided
// by syslog().
- if (ACE_BIT_ENABLED (flags, ACE_Log_Msg::VERBOSE)
+ if (ACE_BIT_ENABLED (flags, ACE_Log_Msg::VERBOSE)
|| ACE_BIT_ENABLED (flags, ACE_Log_Msg::VERBOSE_LITE))
{
ACE_TCHAR date_and_time[35];
diff --git a/ace/config-chorus.h b/ace/config-chorus.h
index f7ab1d1b314..827777a8a0f 100644
--- a/ace/config-chorus.h
+++ b/ace/config-chorus.h
@@ -117,6 +117,9 @@
#define ACE_LACKS_WRITEV
#define ACE_PAGE_SIZE 4096
+// Chorus has syslog, but doesn't have setlogmask()
+#define ACE_LACKS_SETLOGMASK
+
// Yes, we do have threads.
#define ACE_HAS_THREADS
#define ACE_HAS_THREAD_SPECIFIC_STORAGE