Log all responses with code < 200.
This commit is contained in:
parent
bc3d1251b1
commit
026d2d1627
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue