Log to WARNING HTTP internal server errors.
This commit is contained in:
parent
02b99d0fbf
commit
9e96126b87
@ -128,7 +128,11 @@ void HttpConnectionBase::loop() {
|
|||||||
}
|
}
|
||||||
live_event();
|
live_event();
|
||||||
state_ = State::Write;
|
state_ = State::Write;
|
||||||
|
if (res.error().code() == 500) {
|
||||||
|
LOG(WARNING) << "Failed to process an HTTP query:" << res.error();
|
||||||
|
} else {
|
||||||
LOG(INFO) << res.error();
|
LOG(INFO) << res.error();
|
||||||
|
}
|
||||||
HttpHeaderCreator hc;
|
HttpHeaderCreator hc;
|
||||||
hc.init_status_line(res.error().code());
|
hc.init_status_line(res.error().code());
|
||||||
hc.set_content_size(0);
|
hc.set_content_size(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user