diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-22 13:11:29 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-09-23 07:33:31 -0400 |
commit | 87b8670b2749d02ffdc6c06506ac692b09db5be2 (patch) | |
tree | ead3f62f72c3522d3dc7703cd9f009aabc86a023 /server/util/util.h | |
parent | 091df02f920b5f5a658962d3add6f965d84375ac (diff) | |
download | sssd-87b8670b2749d02ffdc6c06506ac692b09db5be2.tar.gz sssd-87b8670b2749d02ffdc6c06506ac692b09db5be2.tar.xz sssd-87b8670b2749d02ffdc6c06506ac692b09db5be2.zip |
Revert "Use syslog for logging error conditions in SSSD"
This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d.
Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made
use of the SYSLOG_ERROR() macro, so those portions of that code
also needed to be reverted.
Diffstat (limited to 'server/util/util.h')
-rw-r--r-- | server/util/util.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/server/util/util.h b/server/util/util.h index 1b039637f..ea7f44e83 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -30,7 +30,6 @@ #include <limits.h> #include <time.h> #include <pcre.h> -#include <syslog.h> #include "config.h" #include "talloc.h" #include "tevent.h" @@ -44,7 +43,6 @@ typedef int errno_t; extern const char *debug_prg_name; extern int debug_level; extern int debug_timestamps; -extern int send_syslog; void debug_fn(const char *format, ...); #define SSSD_DEBUG_OPTS \ @@ -83,20 +81,6 @@ void debug_fn(const char *format, ...); #define PRINT(fmt, ...) fprintf(stdout, gettext(fmt), ##__VA_ARGS__) #define ERROR(fmt, ...) fprintf(stderr, gettext(fmt), ##__VA_ARGS__) -#define SYSLOG_ERROR(...) do { \ - DEBUG(0, (__VA_ARGS__)); \ - if (send_syslog) { \ - syslog(LOG_ERR, __VA_ARGS__); \ - } \ -} while(0); - -#define SYSLOG_NOTICE(...) do { \ - DEBUG(0, (__VA_ARGS__)); \ - if (send_syslog) { \ - syslog(LOG_NOTICE, __VA_ARGS__); \ - } \ -} while(0); - #ifndef discard_const #define discard_const(ptr) ((void *)((uintptr_t)(ptr))) #endif |