diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-06-01 19:34:19 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-06-01 19:34:19 +0200 |
commit | f9ecb7e5b111193db0f5d714e748762ee2b8be1b (patch) | |
tree | 80f35a359b08785f772ae9da6687f8b651da8370 /src/log.c | |
parent | 21369ab14763faec0abeb4e669cb0db62121b6fd (diff) | |
download | dns-f9ecb7e5b111193db0f5d714e748762ee2b8be1b.tar.gz |
C89 Compat
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -19,14 +19,17 @@ const char* log_loglevel_str[6] = { int log_init_file(char* _file, unsigned int _verbosity) { + return -1; + /* log_fd = open(_file, O_WRONLY | O_APPEND | O_CREAT | O_DSYNC); return log_init_stdout(_verbosity);; + */ } int log_init_stdout(unsigned int _verbosity) { - log_loglevel = _verbosity;// > _LOG_DEBUG ? _LOG_DEBUG : _verbosity; + log_loglevel = _verbosity; /* > _LOG_DEBUG ? _LOG_DEBUG : _verbosity; */ log_fd = STDIN_FILENO; LOGPRINTF(0, "=== RESTART ==="); |