summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2018-07-27 12:03:17 +0000
committerDamien Miller <djm@mindrot.org>2018-07-31 12:20:13 +1000
commit5d14019ba2ff54acbfd20a6b9b96bb860a8c7c31 (patch)
treedfb3f5005c234e3e22c3cd5a2d2dc0adef734691 /log.h
parente655ee04a3cb7999dbf9641b25192353e2b69418 (diff)
upstream: avoid expensive channel_open_message() calls; ok djm@
OpenBSD-Commit-ID: aea3b5512ad681cd8710367d743e8a753d4425d9
Diffstat (limited to 'log.h')
-rw-r--r--log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/log.h b/log.h
index 78221046c..ef7bea7e1 100644
--- a/log.h
+++ b/log.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: log.h,v 1.22 2017/05/17 01:24:17 djm Exp $ */ 1/* $OpenBSD: log.h,v 1.23 2018/07/27 12:03:17 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -49,6 +49,7 @@ typedef enum {
49typedef void (log_handler_fn)(LogLevel, const char *, void *); 49typedef void (log_handler_fn)(LogLevel, const char *, void *);
50 50
51void log_init(char *, LogLevel, SyslogFacility, int); 51void log_init(char *, LogLevel, SyslogFacility, int);
52LogLevel log_level_get(void);
52int log_change_level(LogLevel); 53int log_change_level(LogLevel);
53int log_is_on_stderr(void); 54int log_is_on_stderr(void);
54void log_redirect_stderr_to(const char *); 55void log_redirect_stderr_to(const char *);