Skip to content

Commit 1b77f4b

Browse files
authored
use Fatalf to fmt (#323)
1 parent 61ffcd9 commit 1b77f4b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_examples/instrumentation/apmelasticsearch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func main() {
8080
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8181
})
8282
if err != nil {
83-
log.Fatal("ERROR: %s", err)
83+
log.Fatalf("ERROR: %s", err)
8484
}
8585

8686
// Set up the "done" channel

_examples/instrumentation/expvar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func main() {
101101
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
102102
})
103103
if err != nil {
104-
log.Fatal("ERROR: %s", err)
104+
log.Fatalf("ERROR: %s", err)
105105
}
106106

107107
// Publish client metrics to expvar >>>>>>>>>>>>>>>>>

_examples/instrumentation/opencensus.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func main() {
139139
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
140140
})
141141
if err != nil {
142-
log.Fatal("ERROR: %s", err)
142+
log.Fatalf("ERROR: %s", err)
143143
}
144144

145145
// Set up the "done" channel
@@ -171,7 +171,7 @@ func main() {
171171
ochttp.ClientRoundtripLatencyDistribution,
172172
ochttp.ClientCompletedCount,
173173
); err != nil {
174-
log.Fatal("ERROR: %s", err)
174+
log.Fatalf("ERROR: %s", err)
175175
}
176176

177177
// Report views to STDOUT once in a while

0 commit comments

Comments
 (0)