Skip to content

Commit

Permalink
Fix Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch committed Sep 19, 2020
1 parent 31b233b commit dc07489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mqtt2prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func mustShowVersion() {
func mustMQTTClientID() string {
host, err := os.Hostname()
if err != nil {
panic(fmt.Sprintf("failed to get hostname: %w", err))
panic(fmt.Sprintf("failed to get hostname: %v", err))
}
pid := os.Getpid()
return fmt.Sprintf("%s-%d", host, pid)
Expand Down

0 comments on commit dc07489

Please sign in to comment.