improve error log
This commit is contained in:
parent
073cde37db
commit
8dd72a6416
1 changed files with 6 additions and 4 deletions
|
@ -229,13 +229,15 @@ class Callbacks:
|
||||||
if event.sender == self.config.user_id:
|
if event.sender == self.config.user_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
if event.redacts not in self.cache:
|
|
||||||
logger.warning(f"Error removing silence from reaction {event.redacts}")
|
|
||||||
return
|
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Read alert event ID for redacted event {event.redacts} from cache"
|
f"Read alert event ID for redacted event {event.redacts} from cache"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if event.redacts not in self.cache:
|
||||||
|
logger.warning(
|
||||||
|
f"Unable to remove silences from event {event.redacts}: Redacted event is not in cache"
|
||||||
|
)
|
||||||
|
return
|
||||||
alert_event_id: str = self.cache[event.redacts]
|
alert_event_id: str = self.cache[event.redacts]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue