diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-23 12:20:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-23 12:22:26 -0400 |
commit | 48ee85e0c6c83c31693bc58ca4e8e91c8031421d (patch) | |
tree | 065423caedd52fc6ca61b572399ecb7782dcb4bf /src/or/or.h | |
parent | 8b8d501040946bb2280a9640f91a55b7f17b03e3 (diff) | |
download | tor-48ee85e0c6c83c31693bc58ca4e8e91c8031421d.tar.gz tor-48ee85e0c6c83c31693bc58ca4e8e91c8031421d.zip |
Have LOG_PROTOCOL_WARN call its own function
Also, make the function that implements LOG_PROTOCOL_WARN use a
cached value of the desired loglevel, rather than calling
get_options().
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 5bd07ba6a3..8c1ef478ed 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4079,8 +4079,6 @@ typedef struct { int Sandbox; /**< Boolean: should sandboxing be enabled? */ int SafeSocks; /**< Boolean: should we outright refuse application * connections that use socks4 or socks5-with-local-dns? */ -#define LOG_PROTOCOL_WARN (get_options()->ProtocolWarnings ? \ - LOG_WARN : LOG_INFO) int ProtocolWarnings; /**< Boolean: when other parties screw up the Tor * protocol, is it a warn or an info in our logs? */ int TestSocks; /**< Boolean: when we get a socks connection, do we loudly @@ -4627,6 +4625,8 @@ typedef struct { smartlist_t *SchedulerTypes_; } or_options_t; +#define LOG_PROTOCOL_WARN (get_protocol_warning_severity_level()) + /** Persistent state for an onion router, as saved to disk. */ typedef struct { uint32_t magic_; |