Do not print redundant color log info with blank severity

dev
Ice3man 2022-01-15 06:17:23 +05:30
parent 7ff2335935
commit fa6ec8a7e6
1 changed files with 0 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import (
"github.com/logrusorgru/aurora"
"github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/v2/pkg/model/types/severity"
)
@ -27,7 +26,6 @@ func GetColor(colorizer aurora.Aurora, templateSeverity fmt.Stringer) string {
case severity.Critical:
method = colorizer.Red
default:
gologger.Warning().Msgf("The '%s' severity does not have an color associated!", templateSeverity)
method = colorizer.White
}