Skip to content

Commit

Permalink
remove unhelpful logging about events without age params.
Browse files Browse the repository at this point in the history
the conditional was unnecessary, the logline wasn't wrapped,
and it creates literally tens of thousands of warn-level logspam
on my account
  • Loading branch information
ara4n committed Nov 7, 2023
1 parent 107e28e commit 4ff32b4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,6 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
* It is supposed to only be used like this: `ev.getAge() ?? ev.fallbackAge()`
*/
private fallbackAge(): number {
if (!this.getAge()) {
logger.warn(
"Age for event was not available, using `now - origin_server_ts` as a fallback. If the device clock is not correct issues might occur.",
);
}
return Math.max(Date.now() - this.getTs(), 0);
}

Expand Down

0 comments on commit 4ff32b4

Please sign in to comment.