Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 01a1626

Browse files
committed
Stop including traceback in change position warning logs
1 parent 708a6ff commit 01a1626

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

synapse/util/caches/stream_change_cache.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import logging
1616
import math
17-
import traceback
1817
from typing import Collection, Dict, FrozenSet, List, Mapping, Optional, Set, Union
1918

2019
import attr
@@ -104,11 +103,10 @@ def _check_current_position(self, current_pos: Optional[int] = None) -> None:
104103
if current_pos and current_pos > self.max_stream_pos:
105104
logger.warning(
106105
"Checking entity in %s stream cache cache with current position %s "
107-
"ahead of the max stream cache position %s:\n%s",
106+
"ahead of the max stream cache position %s",
108107
self.name,
109108
current_pos,
110109
self.max_stream_pos,
111-
"".join(traceback.format_stack()),
112110
)
113111

114112
def set_cache_factor(self, factor: float) -> bool:

0 commit comments

Comments
 (0)