From 23e0679c7f48220ced67e4727021b3b33122a088 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sun, 25 Aug 2019 01:41:35 -0700 Subject: [PATCH] fix to database logging --- backfiller/backfiller/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backfiller/backfiller/main.py b/backfiller/backfiller/main.py index 25cc2ea..2b597e3 100644 --- a/backfiller/backfiller/main.py +++ b/backfiller/backfiller/main.py @@ -157,7 +157,7 @@ class BackfillerManager(object): self.node_file = node_file self.node_database = node_database if self.node_database is not None: - self.db_manager = database.DBManager(dsn=self.node_database) + self.db_manager = database.DBManager(dsn=self.node_database) self.localhost = localhost self.download_concurrency = download_concurrency self.recent_cutoff = recent_cutoff @@ -262,7 +262,7 @@ class BackfillerManager(object): if self.node_database is not None: self.logger.info('Fetching list of nodes from {}'.format( - urlparse.urlparse(self.node_database).hostname)) + self.connection.dsn)) results = database.query(self.connection, """ SELECT name, url FROM nodes