diff options
author | markus@openbsd.org <markus@openbsd.org> | 2018-07-27 12:03:17 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-31 12:20:13 +1000 |
commit | 5d14019ba2ff54acbfd20a6b9b96bb860a8c7c31 (patch) | |
tree | dfb3f5005c234e3e22c3cd5a2d2dc0adef734691 /log.c | |
parent | e655ee04a3cb7999dbf9641b25192353e2b69418 (diff) |
upstream: avoid expensive channel_open_message() calls; ok djm@
OpenBSD-Commit-ID: aea3b5512ad681cd8710367d743e8a753d4425d9
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: log.c,v 1.50 2017/05/17 01:24:17 djm Exp $ */ | 1 | /* $OpenBSD: log.c,v 1.51 2018/07/27 12:03:17 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -105,6 +105,12 @@ static struct { | |||
105 | { NULL, SYSLOG_LEVEL_NOT_SET } | 105 | { NULL, SYSLOG_LEVEL_NOT_SET } |
106 | }; | 106 | }; |
107 | 107 | ||
108 | LogLevel | ||
109 | log_level_get(void) | ||
110 | { | ||
111 | return log_level; | ||
112 | } | ||
113 | |||
108 | SyslogFacility | 114 | SyslogFacility |
109 | log_facility_number(char *name) | 115 | log_facility_number(char *name) |
110 | { | 116 | { |