diff options
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); |