Skip to content

Commit

Permalink
Better log output
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Sep 11, 2023
1 parent 940005b commit 33bddb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ def _on_start(self, event: StartEvent) -> None:
# Set up the postgresql_exporter options.
self._setup_exporter()
except snap.SnapError:
logger.error("failed to set up postgresql_exporter options")
logger.exception("failed to set up postgresql_exporter options")
self.unit.status = BlockedStatus("failed to set up postgresql_exporter options")
return

Expand Down
3 changes: 1 addition & 2 deletions src/grafana_dashboards/postgresql-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,6 @@
"tags": [
"postgres",
"db",
"stats"
],
"templating": {
"list": [
Expand Down Expand Up @@ -3263,7 +3262,7 @@
]
},
"timezone": "",
"title": "PostgreSQL Database",
"title": "PostgreSQL",
"uid": "000000039",
"version": 1
}

0 comments on commit 33bddb4

Please sign in to comment.