tg_cli: prevent logging to default_log_interface after closing.

GitOrigin-RevId: f1cb27cd5b5a4af4d46b7ed69e87d43ad5a9f103
This commit is contained in:
levlam 2018-10-08 15:59:14 +03:00
parent 806e570a72
commit 03d842194e
1 changed files with 2 additions and 1 deletions

View File

@ -3552,7 +3552,8 @@ void main(int argc, char **argv) {
std::locale::global(new_locale);
SCOPE_EXIT {
std::locale::global(std::locale::classic());
log_interface = default_log_interface;
static NullLog null_log;
log_interface = &null_log;
};
CliLog cli_log;