mirror of
https://github.com/lunchcat/sif.git
synced 2026-01-16 23:01:49 -08:00
feat: show module loading and execution logs by default
This commit is contained in:
@@ -80,7 +80,7 @@ func (l *Loader) LoadAll() error {
|
||||
}
|
||||
}
|
||||
|
||||
log.Debugf("Loaded %d modules", l.loaded)
|
||||
log.Infof("📦 Loaded %d modules", l.loaded)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
6
sif.go
6
sif.go
@@ -377,7 +377,7 @@ func (app *App) Run() error {
|
||||
}
|
||||
|
||||
for _, m := range toRun {
|
||||
log.Debugf("Running module: %s", m.Info().ID)
|
||||
log.Infof("🔍 Running module: %s", m.Info().ID)
|
||||
result, err := m.Execute(context.Background(), url, opts)
|
||||
if err != nil {
|
||||
log.Warnf("Module %s failed: %v", m.Info().ID, err)
|
||||
@@ -385,9 +385,9 @@ func (app *App) Run() error {
|
||||
}
|
||||
if result != nil && len(result.Findings) > 0 {
|
||||
moduleResults = append(moduleResults, NewModuleResult(result))
|
||||
log.Infof("Module %s found %d findings", m.Info().ID, len(result.Findings))
|
||||
log.Infof("✅ Module %s: %d findings", m.Info().ID, len(result.Findings))
|
||||
} else {
|
||||
log.Debugf("Module %s: no findings", m.Info().ID)
|
||||
log.Infof("➖ Module %s: no findings", m.Info().ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user