Log all responses with code < 200.

This commit is contained in:
levlam 2021-09-29 20:40:18 +03:00
parent 997a7408c7
commit 9380c2a3d1

View File

@ -59,8 +59,8 @@ void Client::fail_query_with_error(PromisedQueryPtr query, int32 error_code, Sli
}
int32 real_error_code = error_code;
Slice real_error_message = error_message;
if (error_code < 300 || error_code == 404) {
if (error_code <= 0) {
if (error_code < 400 || error_code == 404) {
if (error_code < 200) {
LOG(ERROR) << "Receive error \"" << real_error_message << "\" with code " << error_code << " from " << *query;
}