From fa6ec8a7e6a44437392ca8f4f2f4f2b4a976776c Mon Sep 17 00:00:00 2001 From: Ice3man Date: Sat, 15 Jan 2022 06:17:23 +0530 Subject: [PATCH] Do not print redundant color log info with blank severity --- v2/internal/colorizer/colorizer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/v2/internal/colorizer/colorizer.go b/v2/internal/colorizer/colorizer.go index b43bbdb3..f9a32e86 100644 --- a/v2/internal/colorizer/colorizer.go +++ b/v2/internal/colorizer/colorizer.go @@ -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 }