diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-06-03 17:37:49 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2013-06-06 16:52:10 +0200 |
commit | d8b62de102ba91989563164f7717457e4aa07a06 (patch) | |
tree | 94f6c8fe31a8e6a12056692e8446fab8d0627439 | |
parent | ef891ef33eac43d8f91e4c3b167afd72aba613a7 (diff) | |
download | gss-proxy-d8b62de102ba91989563164f7717457e4aa07a06.tar.gz gss-proxy-d8b62de102ba91989563164f7717457e4aa07a06.tar.xz gss-proxy-d8b62de102ba91989563164f7717457e4aa07a06.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>
-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); |