Skip to content

Commit

Permalink
Print struct fields in new alerts when debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorunic committed Feb 8, 2023
1 parent be1cfb2 commit 83cef01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routines.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func msgDedup(ctx context.Context, wgFilter *sync.WaitGroup, gradesScraped <-cha

// check if is the initial run and send only if not
if !found && eDB.Existing() {
logrus.Debugf("New alert for: %v/%v: %v", g.Username, g.Subject, g)
logrus.Debugf("New alert for: %v/%v: %+v", g.Username, g.Subject, g)
gradesMsg <- g
}
}
Expand Down

0 comments on commit 83cef01

Please sign in to comment.