Skip to content

Commit c6b88cc

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

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tools/flakeguard/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard
22

3-
go 1.24.3
3+
go 1.24.0
44

55
require (
66
github.com/andygrunwald/go-jira v1.16.0

tools/flakeguard/main.go

Lines changed: 3 additions & 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,
@@ -37,6 +38,8 @@ func init() {
3738
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack
3839
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
3940

41+
log.Info().Msg("FlakeGuard tool initialized - 0.0.1")
42+
4043
rootCmd.AddCommand(cmd.FindTestsCmd)
4144
rootCmd.AddCommand(cmd.RunTestsCmd)
4245
rootCmd.AddCommand(cmd.CheckTestOwnersCmd)

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)