Skip to content

Commit d3b32bf

Browse files
author
Marco Pracucci
committed
Merge branch 'master' of github.com:spreaker/prometheus-pgbouncer-exporter
2 parents df90b8f + a158c66 commit d3b32bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_pgbouncer_exporter/collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def collect(self):
8181
success = False
8282

8383
except Exception as error:
84-
logging.getLogger().debug("Unable fetch metrics from {dsn}".format(dsn=self.config.getDsnWithMaskedPassword()), extra={"exception": str(error)})
84+
logging.getLogger().error("Unable fetch metrics from {dsn}".format(dsn=self.config.getDsnWithMaskedPassword()), extra={"exception": str(error)})
8585

8686
success = False
8787
finally:
@@ -147,7 +147,7 @@ def _fetchMetrics(self, conn, query):
147147

148148
return cursor.fetchall()
149149
except Exception as error:
150-
logging.getLogger().debug("Unable run query {query} on {dsn}".format(query=query, dsn=self.config.getDsnWithMaskedPassword()), extra={"exception": str(error)})
150+
logging.getLogger().error("Unable run query {query} on {dsn}".format(query=query, dsn=self.config.getDsnWithMaskedPassword()), extra={"exception": str(error)})
151151

152152
return False
153153
finally:

0 commit comments

Comments
 (0)