Skip to content

Commit 16d2471

Browse files
committed
set global log level
1 parent 39db163 commit 16d2471

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/flakeguard/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func Execute() {
2929
}
3030

3131
func init() {
32+
zerolog.SetGlobalLevel(zerolog.DebugLevel)
3233
zerolog.TimeFieldFormat = time.RFC3339Nano
3334
log.Logger = log.Output(zerolog.ConsoleWriter{
3435
Out: io.Discard,

tools/flakeguard/runner/parser/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ func (p *defaultParser) processEvent(state *testProcessingState, rawEv rawEventD
291291
return
292292
}
293293

294-
if panicStarted := startPanicRe.MatchString(event.Output); panicStarted {
294+
if startPanicRe.MatchString(event.Output) {
295295
state.panicDetectionMode = true
296296
state.detectedEntries = append(state.detectedEntries, rawEv)
297297
return
298298
}
299299

300-
if raceStarted := startRaceRe.MatchString(event.Output); raceStarted {
300+
if startRaceRe.MatchString(event.Output) {
301301
state.raceDetectionMode = true
302302
state.detectedEntries = append(state.detectedEntries, rawEv)
303303
return

0 commit comments

Comments
 (0)