Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
simplify log formating with %q
Browse files Browse the repository at this point in the history
  • Loading branch information
jorinvo committed Feb 12, 2017
1 parent 4569277 commit 3f877f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ func main() {
}

// Fetch from Prometheus
log("Querying Prometheus \"%s\"", *query)
log("Querying Prometheus %q", *query)
metrics, err := promplot.Metrics(*promServer, *query, *queryTime, *duration, step)
fatal(err, "failed getting metrics")

// Plot
log("Creating plot \"%s\"", *title)
log("Creating plot %q", *title)
tmp, err := promplot.Plot(metrics, *title, *format)
defer cleanup(tmp)
fatal(err, "failed creating plot")
Expand Down Expand Up @@ -118,7 +118,7 @@ func main() {

// Upload to Slack
if *slackToken != "" {
log("Uploading to Slack channel \"%s\"", *channel)
log("Uploading to Slack channel %q", *channel)
fatal(promplot.Slack(*slackToken, *channel, tmp, *title), "failed creating plot")
}

Expand Down

0 comments on commit 3f877f0

Please sign in to comment.