Make the log stuff a bit tidier with some helper functions.

This commit is contained in:
nicm
2015-11-24 21:19:46 +00:00
parent 4ec61bef46
commit 9cccb8c115
6 changed files with 36 additions and 27 deletions

View File

@ -173,7 +173,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
}
close(pair[0]);
if (debug_level > 3)
if (log_get_level() > 3)
tty_create_log();
if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec "
"tty ps", NULL) != 0)