Skip to content

Commit

Permalink
Fix pre/post processing log output
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Apr 6, 2022
1 parent 7112c1e commit e041a7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/engine/pwnanalyzers.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ func (l LoaderID) AddProcessor(pf ProcessorFunc, description string, priority Pr
func Process(ao *Objects, cb ProgressCallbackFunc, l LoaderID, priority ProcessPriority) error {
for _, processor := range registeredProcessors {
if processor.loader == l && processor.priority == priority {
log.Info().Msgf("Preprocessing %v ...", processor.description)
if priority < AfterMergeLow {
log.Info().Msgf("Preprocessing %v ...", processor.description)
} else {
log.Info().Msgf("Postprocessing %v ...", processor.description)
}
processor.pf(ao)
}
}
Expand Down

0 comments on commit e041a7d

Please sign in to comment.