summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-24 21:19:46 +0000
committernicm <nicm@openbsd.org>2015-11-24 21:19:46 +0000
commit0a607e68121471034e862839247963a0dc80fceb (patch)
tree0169528762bd072b6f44d383811be2d1911c10ee /usr.bin/tmux/server.c
parentRevert previous tweak, pending a more complete rewording. Discussed with (diff)
downloadwireguard-openbsd-0a607e68121471034e862839247963a0dc80fceb.tar.xz
wireguard-openbsd-0a607e68121471034e862839247963a0dc80fceb.zip
Make the log stuff a bit tidier with some helper functions.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 6f1fd4cf42d..657d77beca2 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.151 2015/11/22 19:41:19 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.152 2015/11/24 21:19:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)