Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Log exception details on DB connection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vfreex committed May 16, 2022
1 parent f3e6685 commit 9a7dd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doozerlib/runtime.py
Expand Up @@ -387,8 +387,8 @@ def initialize(self, mode='images', clone_distgits=True,

try:
self.db = dblib.DB(self, self.datastore)
except:
self.logger.warning('Cannot connect to the DB')
except Exception as err:
self.logger.warning('Cannot connect to the DB: %s\n%s', str(err), traceback.format_exc())

self.logger.info(f'Initial execution (cwd) directory: {os.getcwd()}')

Expand Down

0 comments on commit 9a7dd29

Please sign in to comment.