diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-06-03 17:37:49 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2014-01-14 14:31:56 +0100 |
commit | 16fed8116b9a1ad1354e6181914bc16b95911030 (patch) | |
tree | bd00d7b00bc669972581123b3bd3aa57bf5ced94 /proxy/src | |
parent | 0e7a983ae04658f818bcc0332db3f30a58b01aba (diff) | |
download | gss-proxy-16fed8116b9a1ad1354e6181914bc16b95911030.tar.gz gss-proxy-16fed8116b9a1ad1354e6181914bc16b95911030.tar.xz gss-proxy-16fed8116b9a1ad1354e6181914bc16b95911030.zip |
Let GPERROR also print warning on stderr, not only in syslog.
This make it easier to identify issues when run interactively.
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r-- | proxy/src/gp_log.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proxy/src/gp_log.h b/proxy/src/gp_log.h index f3549d1..a5a5c20 100644 --- a/proxy/src/gp_log.h +++ b/proxy/src/gp_log.h @@ -28,7 +28,11 @@ #include <syslog.h> -#define GPERROR(...) syslog(LOG_ERR, __VA_ARGS__); +#define GPERROR(...) do { \ + syslog(LOG_ERR, __VA_ARGS__); \ + fprintf(stderr, __VA_ARGS__); \ +} while(0) + #define GPAUDIT(...) syslog(LOG_INFO, __VA_ARGS__); void gp_logging_init(void); |