From fa315720060e6c306e6b137a499df0c677cffbff Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Thu, 29 Aug 2019 19:58:11 +0100 Subject: [PATCH] logging fix --- 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 2b597e3..a4217fa 100644 --- a/backfiller/backfiller/main.py +++ b/backfiller/backfiller/main.py @@ -261,8 +261,8 @@ class BackfillerManager(object): nodes[substrs[0]] = substrs[1] if self.node_database is not None: - self.logger.info('Fetching list of nodes from {}'.format( - self.connection.dsn)) + host = [s.split('=')[-1] for s in self.connection.dsn.split() if 'host' in s][0] + self.logger.info('Fetching list of nodes from {}'.format(host)) results = database.query(self.connection, """ SELECT name, url FROM nodes