mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-22 08:15:27 +00:00
improved logging
This commit is contained in:
parent
a4859df5e9
commit
fc6d5a7773
@ -38,7 +38,7 @@ func (e *Engine) executeAllSelfContained(ctx context.Context, alltemplates []*te
|
|||||||
match, err = template.Executer.Execute(ctx)
|
match, err = template.Executer.Execute(ctx)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gologger.Warning().Msgf("[%s] Could not execute step: %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), err)
|
gologger.Warning().Msgf("[%s] Could not execute step (self-contained): %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), err)
|
||||||
}
|
}
|
||||||
results.CompareAndSwap(false, match)
|
results.CompareAndSwap(false, match)
|
||||||
}(v)
|
}(v)
|
||||||
@ -140,7 +140,7 @@ func (e *Engine) executeTemplateWithTargets(ctx context.Context, template *templ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gologger.Warning().Msgf("[%s] Could not execute step: %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), err)
|
gologger.Warning().Msgf("[%s] Could not execute step on %s: %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), value.Input, err)
|
||||||
}
|
}
|
||||||
results.CompareAndSwap(false, match)
|
results.CompareAndSwap(false, match)
|
||||||
}(index, skip, scannedValue)
|
}(index, skip, scannedValue)
|
||||||
@ -206,7 +206,7 @@ func (e *Engine) executeTemplatesOnTarget(ctx context.Context, alltemplates []*t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gologger.Warning().Msgf("[%s] Could not execute step: %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), err)
|
gologger.Warning().Msgf("[%s] Could not execute step on %s: %s\n", e.executerOpts.Colorizer.BrightBlue(template.ID), value.Input, err)
|
||||||
}
|
}
|
||||||
results.CompareAndSwap(false, match)
|
results.CompareAndSwap(false, match)
|
||||||
}(tpl, target, sg)
|
}(tpl, target, sg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user