diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-29 13:28:30 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-29 13:28:30 +0200 |
commit | 342068d6822a42aa93836896386b1ac9a332f853 (patch) | |
tree | e098da57f1cf0c092dbe7440caa76c476e2ee49f /eurephia_log.h | |
parent | 2b2fc4600c383cfc465a634657b0f3837f664770 (diff) | |
download | eurephia-342068d6822a42aa93836896386b1ac9a332f853.tar.gz eurephia-342068d6822a42aa93836896386b1ac9a332f853.tar.xz eurephia-342068d6822a42aa93836896386b1ac9a332f853.zip |
Added password masking if SHOW_SECRETS not defined when dumping environment variables.
Diffstat (limited to 'eurephia_log.h')
-rw-r--r-- | eurephia_log.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eurephia_log.h b/eurephia_log.h index 33f4a59..5bc4654 100644 --- a/eurephia_log.h +++ b/eurephia_log.h @@ -32,14 +32,17 @@ #define LOG_PANIC 7 #ifdef ENABLE_DEBUG -#warning ################################################################ -#warning ## DEBUG LOGGING IS ENABLED - THIS COULD BE AN SECURITY ISSUE ## -#warning ################################################################ +#warning ###### DEBUG LOGGING IS ENABLED - THIS COULD BE AN SECURITY ISSUE ###### #define DEBUG(ctx, lvl, rest...) eurephia_log(ctx, LOG_DEBUG, lvl, ## rest); #else #define DEBUG(ctx, lvl, rest...) {}; #endif +#ifdef SHOW_SECRETS +#warning ##################################################################################################### +#warning ## DEBUG LOGGING WITH SHOW_SECRETS IS ENABLED - THIS WILL PUT PASSWORDS IN CLEAR TEXT IN LOG FILES ## +#warning ##################################################################################################### +#endif void eurephia_log(eurephiaCTX *ctx, int logdst, int loglvl, const char *fmt, ... ); #endif /* !EUREPHIA_LOG_H_ */ |