MessageReceiver.maybeUpdateTimestamp: Annotate group identifier for log

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny 2022-01-25 18:09:40 -08:00 committed by Fedor Indutnyy
parent 3a04de8a60
commit e2f7c2dd45
1 changed files with 4 additions and 1 deletions

View File

@ -1847,8 +1847,11 @@ export default class MessageReceiver
try {
if (!conversation) {
const idForLogging = envelope.groupId
? `groupv2(${envelope.groupId})`
: envelope.sourceUuid;
log.info(
`maybeUpdateTimestamp/${timestamp}: No conversation found for identifier ${identifier}`
`maybeUpdateTimestamp/${timestamp}: No conversation found for identifier ${idForLogging}`
);
return envelope;
}