diff options
author | 2015-11-24 21:19:46 +0000 | |
---|---|---|
committer | 2015-11-24 21:19:46 +0000 | |
commit | 0a607e68121471034e862839247963a0dc80fceb (patch) | |
tree | 0169528762bd072b6f44d383811be2d1911c10ee /usr.bin/tmux/server.c | |
parent | Revert previous tweak, pending a more complete rewording. Discussed with (diff) | |
download | wireguard-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.c | 4 |
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) |