os: direct access to logVerbosity

No need for complicated 'generic' setter, just make the variable
itself available to DDX'es.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-02-10 13:30:20 +01:00
committed by Enrico Weigelt, metux IT consult .
parent 4fa8b1658b
commit 3640a33077
11 changed files with 30 additions and 20 deletions

View File

@@ -111,9 +111,9 @@ OR PERFORMANCE OF THIS SOFTWARE.
#define DEFAULT_LOG_FILE_VERBOSITY 3
Bool logSync = FALSE;
int logVerbosity = DEFAULT_LOG_VERBOSITY;
static int logFileFd = -1;
static int logVerbosity = DEFAULT_LOG_VERBOSITY;
static int logFileVerbosity = DEFAULT_LOG_FILE_VERBOSITY;
/* Buffer to information logged before the log file is opened. */

View File

@@ -15,4 +15,12 @@
*/
extern Bool logSync;
/**
* @brief console log verbosity (stderr)
*
* The verbosity level of logging to console. All messages with verbosity
* level below this one will be written to stderr
*/
extern int logVerbosity;
#endif /* _XSERVER_LOG_PRIV_H */