Skip to content

Commit

Permalink
Improve log, upd version
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Nov 21, 2022
1 parent 0ed64d6 commit 21e9028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylibagent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ async def _check_loop(self, check):
await self.send_data(check.key, check_data)
except asyncio.TimeoutError:
logging.error(f'check error ({check.key}): timed out')
except SendDataException as e:
logging.error(str(e))
except Exception as e:
msg = str(e) or type(e).__name__
logging.error(f'check error ({check.key}): {msg}')
except SendDataException as e:
logging.error(str(e))
else:
logging.debug(f'check_loop ({check.key}): ok!')
finally:
Expand Down

0 comments on commit 21e9028

Please sign in to comment.