tg_cli: prevent logging to default_log_interface after closing.
GitOrigin-RevId: f1cb27cd5b5a4af4d46b7ed69e87d43ad5a9f103
This commit is contained in:
parent
806e570a72
commit
03d842194e
@ -3552,7 +3552,8 @@ void main(int argc, char **argv) {
|
|||||||
std::locale::global(new_locale);
|
std::locale::global(new_locale);
|
||||||
SCOPE_EXIT {
|
SCOPE_EXIT {
|
||||||
std::locale::global(std::locale::classic());
|
std::locale::global(std::locale::classic());
|
||||||
log_interface = default_log_interface;
|
static NullLog null_log;
|
||||||
|
log_interface = &null_log;
|
||||||
};
|
};
|
||||||
|
|
||||||
CliLog cli_log;
|
CliLog cli_log;
|
||||||
|
Loading…
Reference in New Issue
Block a user