Commit d91f39ab by Abseil Team Committed by Copybara-Service

Refactor for preliminary API update.

PiperOrigin-RevId: 566675048
Change-Id: Ie598c21474858974e4b4adbad401c61a38924c98
parent bd467aad
......@@ -21,14 +21,18 @@
namespace absl {
ABSL_NAMESPACE_BEGIN
void InitializeLog() {
namespace {
void InitializeLogImpl(absl::TimeZone time_zone) {
// This comes first since it is used by RAW_LOG.
absl::log_internal::SetTimeZone(absl::LocalTimeZone());
absl::log_internal::SetTimeZone(time_zone);
// Note that initialization is complete, so logs can now be sent to their
// proper destinations rather than stderr.
log_internal::SetInitialized();
}
} // namespace
void InitializeLog() { InitializeLogImpl(absl::LocalTimeZone()); }
ABSL_NAMESPACE_END
} // namespace absl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment