nghttpx: Guard with LOG_ENABLED(INFO)

This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-19 16:24:48 +09:00
parent 4807e71b7d
commit 30f9f9ef87
1 changed files with 4 additions and 1 deletions

View File

@ -90,7 +90,10 @@ void connchk_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents) {
namespace { namespace {
void settings_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents) { void settings_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents) {
auto http2session = static_cast<Http2Session *>(w->data); auto http2session = static_cast<Http2Session *>(w->data);
SSLOG(INFO, http2session) << "SETTINGS timeout";
if (LOG_ENABLED(INFO)) {
SSLOG(INFO, http2session) << "SETTINGS timeout";
}
downstream_failure(http2session->get_addr()); downstream_failure(http2session->get_addr());