Skip to content

Commit

Permalink
Add more detailed log
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Feb 13, 2024
1 parent d3aaa7b commit ee51eff
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions validator/impl/liteserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,15 @@ void LiteQuery::abort_query_ext(td::Status reason, bool unknown) {
started_at_, std::time(nullptr), false);
}

LOG(INFO) << "aborted liteserver query: " << reason.to_string()
<< " query: " << lite_query_name_by_id(query_obj_->get_id());
if (query_obj_ != nullptr) {
LOG(INFO) << "aborted liteserver query: " << reason.to_string()
<< " query: " << lite_query_name_by_id(query_obj_->get_id());
} else if (acc_state_promise_) {
LOG(INFO) << "aborted liteserver query: " << reason.to_string() << " query: get account state";
} else {
LOG(INFO) << "aborted liteserver query: " << reason.to_string();
}

if (acc_state_promise_) {
acc_state_promise_.set_error(std::move(reason));
} else if (promise_) {
Expand Down

0 comments on commit ee51eff

Please sign in to comment.