From 4ebce1ed8b63decb0919146a034f0c80ac47c3cd Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 16 Oct 2019 13:56:34 -0400 Subject: [PATCH] os: Move log verbosity defaults into os/log.c There's not any configuration knobs for this so there's no real reason to leave them in a configgy header. --- include/site.h | 8 -------- os/log.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/site.h b/include/site.h index 2d997cb1b..21bc0e2a2 100644 --- a/include/site.h +++ b/include/site.h @@ -87,12 +87,4 @@ SOFTWARE. #define DEFAULT_ACCESS_CONTROL TRUE #endif -/* Default logging parameters. */ -#ifndef DEFAULT_LOG_VERBOSITY -#define DEFAULT_LOG_VERBOSITY 0 -#endif -#ifndef DEFAULT_LOG_FILE_VERBOSITY -#define DEFAULT_LOG_FILE_VERBOSITY 3 -#endif - #endif /* SITE_H */ diff --git a/os/log.c b/os/log.c index fd433e62f..0e5c06b2d 100644 --- a/os/log.c +++ b/os/log.c @@ -108,6 +108,14 @@ OR PERFORMANCE OF THIS SOFTWARE. void (*OsVendorVErrorFProc) (const char *, va_list args) = NULL; #endif +/* Default logging parameters. */ +#ifndef DEFAULT_LOG_VERBOSITY +#define DEFAULT_LOG_VERBOSITY 0 +#endif +#ifndef DEFAULT_LOG_FILE_VERBOSITY +#define DEFAULT_LOG_FILE_VERBOSITY 3 +#endif + static FILE *logFile = NULL; static int logFileFd = -1; static Bool logFlush = FALSE;