diff options
| author | levlam <levlam@telegram.org> | 2018-01-28 19:38:59 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2018-01-28 19:38:59 +0300 |
| commit | a47d5d5511c8064bc16e059e6cd04b12c1af76d2 (patch) | |
| tree | 091bafadad6792a07d98d029119db34e80159554 /td/telegram/td_log.cpp | |
| parent | 662471ea4835ffb86e3bdea25c725db654f92f9f (diff) | |
Return whether Log::set_file_path succeded or not.
GitOrigin-RevId: a928f8691ebedfd7451bf8bd7957071786b50349
Diffstat (limited to 'td/telegram/td_log.cpp')
| -rw-r--r-- | td/telegram/td_log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/td_log.cpp b/td/telegram/td_log.cpp index 0bffe0c7a..2eb360578 100644 --- a/td/telegram/td_log.cpp +++ b/td/telegram/td_log.cpp @@ -10,8 +10,8 @@ #include <cstdint> -void td_set_log_file_path(const char *file_path) { - td::Log::set_file_path(file_path == nullptr ? "" : file_path); +int td_set_log_file_path(const char *file_path) { + return static_cast<int>(td::Log::set_file_path(file_path == nullptr ? "" : file_path)); } void td_set_log_max_file_size(long long max_file_size) { |
