Add some debug.

GitOrigin-RevId: 5d2387379188dce1fd52cc9561a349f87e4fc240
This commit is contained in:
levlam 2018-08-04 23:08:36 +03:00
parent c9c2760173
commit 2465356c2e
2 changed files with 3 additions and 2 deletions

View File

@ -212,7 +212,7 @@ void Proxy::parse(T &parser) {
parse(port_, parser);
parse(secret_, parser);
} else {
CHECK(type_ == Proxy::Type::None);
CHECK(type_ == Proxy::Type::None) << static_cast<int32>(type_);
}
}

View File

@ -21,7 +21,8 @@ void TlParser::set_error(const string &error_message) {
} else {
data = empty_data;
CHECK(error_pos != std::numeric_limits<size_t>::max());
CHECK(data_len == 0);
CHECK(data_len == 0) << data_len << " " << left_len << " " << data << " " << &empty_data[0] << " " << error_pos
<< " " << error;
CHECK(left_len == 0);
}
}