diff options
| author | levlam <levlam@telegram.org> | 2021-05-18 04:35:36 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-05-18 04:41:09 +0300 |
| commit | d34680b83f0d39883d5146bb94a7c0e8a20c4f84 (patch) | |
| tree | 9f9f8e5599afd153f59e84b66a8e0b37772f96d0 /td/telegram/td_json_client.cpp | |
| parent | 41d75d8c99e36bb5cddc57aa57a07f94aa0d11d1 (diff) | |
Remove set_log_fatal_error_callback. Add td_set_log_message_callback, deprecate td_set_log_fatal_error_callback.
Diffstat (limited to 'td/telegram/td_json_client.cpp')
| -rw-r--r-- | td/telegram/td_json_client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/td/telegram/td_json_client.cpp b/td/telegram/td_json_client.cpp index 1a426e6d0..fa897d638 100644 --- a/td/telegram/td_json_client.cpp +++ b/td/telegram/td_json_client.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/td_json_client.h" +#include "td/telegram/Client.h" #include "td/telegram/ClientJson.h" #include "td/utils/Slice.h" @@ -45,3 +46,7 @@ const char *td_receive(double timeout) { const char *td_execute(const char *request) { return td::json_execute(td::Slice(request == nullptr ? "" : request)); } + +void td_set_log_message_callback(int max_verbosity_level, td_log_message_callback_ptr callback) { + td::ClientManager::set_log_message_callback(max_verbosity_level, callback); +} |
