Added logging of the Filter ID

This commit is contained in:
Sam Jongenelen 2022-05-23 15:43:14 +02:00 committed by GitHub
parent 817ecaa8c1
commit 6306829bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1171,9 +1171,10 @@ class MikrotikControllerData:
if self.data["filter"][uid]["uniq-id"] not in self.filter_removed:
self.filter_removed[self.data["filter"][uid]["uniq-id"]] = 1
_LOGGER.error(
"Mikrotik %s duplicate Filter rule %s, entity will be unavailable.",
"Mikrotik %s duplicate Filter rule %s (ID %s), entity will be unavailable.",
self.host,
self.data["filter"][uid]["name"],
self.data["filter"][uid][".id"],
)
del self.data["filter"][uid]