Skip to content

Commit 736c664

Browse files
authored
Merge pull request #233 from jwillemsen/jwi-errorlogging
Add some more error logging
2 parents b64c85e + 6873791 commit 736c664

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

custom_components/daikin_onecta/daikin_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ async def doBearerRequest(self, method, resourceUrl, options=None):
142142
self._last_patch_call = datetime.now()
143143
return True
144144

145+
_LOGGER.error("REQUEST TYPE %s FAILED: %s %s", method, res.status_code, res.text)
146+
145147
raise Exception("Communication failed! Status: " + str(res.status_code) + " " + res.text)
146148

147149
async def getCloudDeviceDetails(self):

0 commit comments

Comments
 (0)