Commit
Author: Drew DeVault [sir@cmpwn.com]
Hash: 33d0c129be02dd6f8f126ca20491d55fa2a84354
Timestamp: Tue, 07 Dec 2021 10:06:31 +0000 (3 years ago)

+1 -1 +/-1 browse
Fix Printf without formatting directives
1diff --git a/main.go b/main.go
2index ab164e9..e8fe420 100644
3--- a/main.go
4+++ b/main.go
5 @@ -144,7 +144,7 @@ func handleLabel(p *plot.Plot, l *plotter.Line, label string, metric string) {
6 }
7 tmpl, err := template.New("label").Parse(label)
8 if err != nil {
9- log.Printf("Failed to parse label template: ", err)
10+ log.Printf("Failed to parse label template: %v", err)
11 } else {
12 var label_out bytes.Buffer
13 tmpl.Execute(&label_out, tags)