mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-25 18:28:46 +02:00
implemented debug masking
This commit is contained in:
parent
b1d6e7f6a9
commit
e62a711bfe
2 changed files with 44 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue