mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 23:15:27 +00:00
Merge pull request #254 from vzamanillo/noisy-load-template
Removed "Loaded template" in favour of "Loading templates..."
This commit is contained in:
commit
c86cb8edb7
@ -205,7 +205,7 @@ func hasMatchingSeverity(templateSeverity string, allowedSeverities []string) bo
|
|||||||
|
|
||||||
func (r *Runner) logTemplateLoaded(id, name, author, severity string) {
|
func (r *Runner) logTemplateLoaded(id, name, author, severity string) {
|
||||||
// Display the message for the template
|
// Display the message for the template
|
||||||
message := fmt.Sprintf("[%s] Loaded template %s (%s)",
|
message := fmt.Sprintf("[%s] %s (%s)",
|
||||||
r.colorizer.BrightBlue(id).String(), r.colorizer.Bold(name).String(), r.colorizer.BrightYellow("@"+author).String())
|
r.colorizer.BrightBlue(id).String(), r.colorizer.Bold(name).String(), r.colorizer.BrightYellow("@"+author).String())
|
||||||
if severity != "" {
|
if severity != "" {
|
||||||
message += " [" + r.colorizer.Yellow(severity).String() + "]"
|
message += " [" + r.colorizer.Yellow(severity).String() + "]"
|
||||||
@ -221,6 +221,7 @@ func (r *Runner) getParsedTemplatesFor(templatePaths []string, severities string
|
|||||||
allSeverities := strings.Split(severities, ",")
|
allSeverities := strings.Split(severities, ",")
|
||||||
filterBySeverity := len(severities) > 0
|
filterBySeverity := len(severities) > 0
|
||||||
|
|
||||||
|
gologger.Infof("Loading templates...")
|
||||||
for _, match := range templatePaths {
|
for _, match := range templatePaths {
|
||||||
t, err := r.parse(match)
|
t, err := r.parse(match)
|
||||||
switch t.(type) {
|
switch t.(type) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user