implemented debug masking

This commit is contained in:
Tomaae 2022-02-18 07:33:38 +01:00
parent b1d6e7f6a9
commit e62a711bfe
2 changed files with 44 additions and 6 deletions

View file

@ -155,6 +155,10 @@ class MikrotikControllerData:
config_entry.data[CONF_SSL],
)
self.debug = False
if _LOGGER.getEffectiveLevel() == 10:
self.debug = True
self.nat_removed = {}
self.mangle_removed = {}
self.filter_removed = {}
@ -527,9 +531,8 @@ class MikrotikControllerData:
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":
tmp_interface = self.data["arp"][uid]["bridge"]
_LOGGER.debug(
"Ping host: %s (%s)", uid, self.data["host"][uid]["address"]
)
_LOGGER.debug("Ping host: %s", self.data["host"][uid]["address"])
self.data["host"][uid][
"available"
] = await self.hass.async_add_executor_job(