Improve logging.

GitOrigin-RevId: d03e6ce64b2e88389f0e3df1ecfec4efb5711e75
This commit is contained in:
levlam 2020-03-18 20:51:02 +03:00
parent cd8c63f073
commit fd10b27847

View File

@ -136,7 +136,8 @@ Status Global::init(const TdParameters &parameters, ActorId<Td> td, unique_ptr<T
int32 Global::to_unix_time(double server_time) const {
LOG_CHECK(1.0 <= server_time && server_time <= 2140000000.0)
<< server_time << " " << Clocks::system() << " " << saved_diff_ << " " << saved_system_time_;
<< server_time << " " << Clocks::system() << " " << is_server_time_reliable() << " "
<< get_server_time_difference() << " " << Time::now() << saved_diff_ << " " << saved_system_time_;
return static_cast<int32>(server_time);
}