Log which device has the time discrepancy (#69595)

This commit is contained in:
Jason Hunter 2022-04-07 12:04:09 -04:00 committed by GitHub
parent d56f6f39c1
commit 62b6d03321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,9 +204,10 @@ class ONVIFDevice:
if self._dt_diff_seconds > 5:
LOGGER.warning(
"The date/time on the device (UTC) is '%s', "
"The date/time on %s (UTC) is '%s', "
"which is different from the system '%s', "
"this could lead to authentication issues",
self.name,
cam_date_utc,
system_date,
)