From bce488f6bf59ef91f7d1566e45c1f97ac998908d Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 17 May 2023 13:00:21 +0300 Subject: [PATCH] Log message_id of all incoming packets. --- td/mtproto/AuthData.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/mtproto/AuthData.cpp b/td/mtproto/AuthData.cpp index 7de2198f8..fe10a9b67 100644 --- a/td/mtproto/AuthData.cpp +++ b/td/mtproto/AuthData.cpp @@ -151,6 +151,8 @@ Status AuthData::check_packet(uint64 session_id, uint64 message_id, double now, TRY_STATUS(duplicate_checker_.check(message_id)); + LOG(DEBUG) << "Receive packet " << format::as_hex(message_id) << " from session " << format::as_hex(session_id) + << " at " << now; time_difference_was_updated = update_server_time_difference(static_cast(message_id >> 32) - now); // In addition, msg_id values that belong over 30 seconds in the future or over 300 seconds in the past are to be