Skip to content

Commit 41d75d8

Browse files
committed
tg_cli: fix response printing.
1 parent d03bad8 commit 41d75d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

td/telegram/cli.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ class CliClient final : public Actor {
740740
}
741741
}
742742

743-
if (id > 0 && GET_VERBOSITY_LEVEL() < VERBOSITY_NAME(td_requests)) {
743+
if (id > 0 && combined_log.get_first_verbosity_level() < VERBOSITY_NAME(td_requests)) {
744744
LOG(ERROR) << "Receive result [" << generation << "][id=" << id << "] " << result_str;
745745
}
746746

@@ -859,7 +859,7 @@ class CliClient final : public Actor {
859859
}
860860

861861
void on_error(uint64 generation, uint64 id, td_api::object_ptr<td_api::error> error) {
862-
if (id > 0 && GET_VERBOSITY_LEVEL() < VERBOSITY_NAME(td_requests)) {
862+
if (id > 0 && combined_log.get_first_verbosity_level() < VERBOSITY_NAME(td_requests)) {
863863
LOG(ERROR) << "Receive error [" << generation << "][id=" << id << "] " << to_string(error);
864864
}
865865
}
@@ -1561,11 +1561,11 @@ class CliClient final : public Actor {
15611561
}
15621562

15631563
static td_api::object_ptr<td_api::Object> execute(td_api::object_ptr<td_api::Function> f) {
1564-
if (GET_VERBOSITY_LEVEL() < VERBOSITY_NAME(td_requests)) {
1564+
if (combined_log.get_first_verbosity_level() < VERBOSITY_NAME(td_requests)) {
15651565
LOG(ERROR) << "Execute request: " << to_string(f);
15661566
}
15671567
auto res = ClientActor::execute(std::move(f));
1568-
if (GET_VERBOSITY_LEVEL() < VERBOSITY_NAME(td_requests)) {
1568+
if (combined_log.get_first_verbosity_level() < VERBOSITY_NAME(td_requests)) {
15691569
LOG(ERROR) << "Execute response: " << to_string(res);
15701570
}
15711571
return res;

0 commit comments

Comments
 (0)