Skip to content

Commit

Permalink
main: test connection at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
shtrom committed Feb 4, 2025
1 parent ea9c25d commit faf69c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git_hg_sync/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def start_app(
for tracked_repo in config.tracked_repositories
}
with connection as conn:
conn.connect()
logger.info(f"connected to {conn.host}")
worker = PulseWorker(conn, queue, one_shot=one_shot)
app = Application(
Expand Down

0 comments on commit faf69c6

Please sign in to comment.