Jelajahi Sumber

Bump log level of subsequent failures to info

Other messages are coming out for every connection attempt at info level,
so it makes sense to see the failures also.
Jason Rumney 1 tahun lalu
induk
melakukan
724c8f1f75
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      custom_components/tuya_local/device.py

+ 1 - 1
custom_components/tuya_local/device.py

@@ -599,7 +599,7 @@ class TuyaLocalDevice(object):
                     if self._api_working_protocol_failures == 1:
                     if self._api_working_protocol_failures == 1:
                         _LOGGER.error(error_message)
                         _LOGGER.error(error_message)
                     else:
                     else:
-                        _LOGGER.debug(error_message)
+                        _LOGGER.info(error_message)
 
 
                 if not self._api_protocol_working:
                 if not self._api_protocol_working:
                     await self._rotate_api_protocol_version()
                     await self._rotate_api_protocol_version()