clearlydefined / operations

Operational documentation and tools
3 stars 10 forks source link

Improve error handling and logging in blobstorage-backupdata #56

Closed RomanIakovlev closed 4 months ago

RomanIakovlev commented 9 months ago

This PR fixes two error-handling-related issues:

  1. Not all the required exception types were handled by the retry policy. Fixed by extending the list of handled exceptions with the types observed during the runtime of the job.
  2. No top-level error handler exists, which means when an exception is thrown, it's logged in a non-standard way, i.e. just printed to console, which might prevent log monitoring solution from catching the error. Fixed by adding a top-level error handler and logging the caught exceptions with the configured logger.