mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 23:13:11 +02:00
Add session_id to mtproto logs.
This commit is contained in:
parent
1c53fca925
commit
8e9630459b
1 changed files with 6 additions and 4 deletions
|
@ -1388,9 +1388,10 @@ void SessionPrivate::handleReceived() {
|
|||
auto sfrom = decryptedInts + 4U; // msg_id + seq_no + length + message
|
||||
MTP_LOG(_shiftedDcId, ("Recv: ")
|
||||
+ DumpToText(sfrom, end)
|
||||
+ QString(" (dc:%1,key:%2)"
|
||||
+ QString(" (dc:%1,key:%2,session:%3)"
|
||||
).arg(AbstractConnection::ProtocolDcDebugId(getProtocolDcId())
|
||||
).arg(_encryptionKey->keyId()));
|
||||
).arg(_encryptionKey->keyId()
|
||||
).arg(_sessionId));
|
||||
|
||||
const auto registered = _receivedMessageIds.registerMsgId(
|
||||
msgId,
|
||||
|
@ -2663,9 +2664,10 @@ bool SessionPrivate::sendSecureRequest(
|
|||
auto from = request->constData() + 4;
|
||||
MTP_LOG(_shiftedDcId, ("Send: ")
|
||||
+ DumpToText(from, from + messageSize)
|
||||
+ QString(" (dc:%1,key:%2)"
|
||||
+ QString(" (dc:%1,key:%2,session:%3)"
|
||||
).arg(AbstractConnection::ProtocolDcDebugId(getProtocolDcId())
|
||||
).arg(_encryptionKey->keyId()));
|
||||
).arg(_encryptionKey->keyId()
|
||||
).arg(_sessionId));
|
||||
|
||||
uchar encryptedSHA256[32];
|
||||
MTPint128 &msgKey(*(MTPint128*)(encryptedSHA256 + 8));
|
||||
|
|
Loading…
Add table
Reference in a new issue