String formatting and max line length - Part 3 (#84394)
This commit is contained in:
parent
30df9e7706
commit
baef267f33
88 changed files with 517 additions and 218 deletions
|
@ -126,8 +126,10 @@ class EventManager:
|
|||
await self._subscription.Unsubscribe()
|
||||
except (XMLParseError, *SUBSCRIPTION_ERRORS) as err:
|
||||
LOGGER.debug(
|
||||
"Failed to unsubscribe ONVIF PullPoint subscription for '%s';"
|
||||
" This is normal if the device restarted: %s",
|
||||
(
|
||||
"Failed to unsubscribe ONVIF PullPoint subscription for '%s';"
|
||||
" This is normal if the device restarted: %s"
|
||||
),
|
||||
self.unique_id,
|
||||
err,
|
||||
)
|
||||
|
@ -141,8 +143,10 @@ class EventManager:
|
|||
# when we get an XMLParseError
|
||||
LOGGER.log(
|
||||
DEBUG if isinstance(err, XMLParseError) else WARNING,
|
||||
"Failed to restart ONVIF PullPoint subscription for '%s'; "
|
||||
"Retrying later: %s",
|
||||
(
|
||||
"Failed to restart ONVIF PullPoint subscription for '%s'; "
|
||||
"Retrying later: %s"
|
||||
),
|
||||
self.unique_id,
|
||||
err,
|
||||
)
|
||||
|
@ -194,7 +198,10 @@ class EventManager:
|
|||
# when we get an XMLParseError
|
||||
LOGGER.log(
|
||||
DEBUG if isinstance(err, XMLParseError) else WARNING,
|
||||
"Failed to fetch ONVIF PullPoint subscription messages for '%s': %s",
|
||||
(
|
||||
"Failed to fetch ONVIF PullPoint subscription messages for"
|
||||
" '%s': %s"
|
||||
),
|
||||
self.unique_id,
|
||||
err,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue