aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-06-01 19:34:19 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-06-01 19:34:19 +0200
commitf9ecb7e5b111193db0f5d714e748762ee2b8be1b (patch)
tree80f35a359b08785f772ae9da6687f8b651da8370 /src/log.c
parent21369ab14763faec0abeb4e669cb0db62121b6fd (diff)
downloaddns-f9ecb7e5b111193db0f5d714e748762ee2b8be1b.tar.gz
C89 Compat
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 9122ecb..8e779a5 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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 ===");