diff --git a/v2/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go index 86389678..dfdc03e6 100644 --- a/v2/cmd/nuclei/main.go +++ b/v2/cmd/nuclei/main.go @@ -13,6 +13,7 @@ import ( "github.com/projectdiscovery/goflags" "github.com/projectdiscovery/gologger" + "github.com/projectdiscovery/gologger/levels" "github.com/projectdiscovery/interactsh/pkg/client" "github.com/projectdiscovery/nuclei/v2/internal/runner" "github.com/projectdiscovery/nuclei/v2/pkg/catalog/config" @@ -322,6 +323,8 @@ on extensive configurability, massive extensibility and ease of use.`) _ = flagSet.Parse() + gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug) + if options.LeaveDefaultPorts { http.LeaveDefaultPorts = true } diff --git a/v2/go.mod b/v2/go.mod index e4a3deb7..eec02cf6 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -25,7 +25,6 @@ require ( github.com/pkg/errors v0.9.1 github.com/projectdiscovery/clistats v0.0.9 github.com/projectdiscovery/fastdialer v0.0.19 - github.com/projectdiscovery/gologger v1.1.5 github.com/projectdiscovery/hmap v0.0.6 github.com/projectdiscovery/interactsh v1.0.6-0.20220827132222-460cc6270053 github.com/projectdiscovery/rawhttp v0.1.4 @@ -73,6 +72,7 @@ require ( github.com/mitchellh/go-homedir v1.1.0 github.com/projectdiscovery/fasttemplate v0.0.2 github.com/projectdiscovery/goflags v0.1.6 + github.com/projectdiscovery/gologger v1.1.6-0.20230104075207-1c357ca8209b github.com/projectdiscovery/nvd v1.0.9 github.com/projectdiscovery/ratelimit v0.0.4 github.com/projectdiscovery/rdap v0.9.1-0.20221108103045-9865884d1917 diff --git a/v2/go.sum b/v2/go.sum index bfabecf7..ec511a52 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -558,6 +558,8 @@ github.com/projectdiscovery/goflags v0.1.6 h1:EXigzX4lJmn/fLMnULdc03O7WW+DjiYZhN github.com/projectdiscovery/goflags v0.1.6/go.mod h1:yILgA7gbrHuTpIvMfikbivzoxkyxBD1Y5/PRHiGTIFk= github.com/projectdiscovery/gologger v1.1.5 h1:CT2Jrpzusca+dwNREMMz4RnAreJ0RqaISRU4SBcZC+M= github.com/projectdiscovery/gologger v1.1.5/go.mod h1:bNyVaC1U/NpJtFkJltcesn01NR3K8Hg6RsLVce6yvrw= +github.com/projectdiscovery/gologger v1.1.6-0.20230104075207-1c357ca8209b h1:OL6uH2ystqHFnfoeei0VbOpsHQkCTpVBVo1BbrNKgfA= +github.com/projectdiscovery/gologger v1.1.6-0.20230104075207-1c357ca8209b/go.mod h1:bNyVaC1U/NpJtFkJltcesn01NR3K8Hg6RsLVce6yvrw= github.com/projectdiscovery/hmap v0.0.6 h1:nwF553wjvDdFF6QtlVfB80koojn8WfJGOQvkW0dzDuk= github.com/projectdiscovery/hmap v0.0.6/go.mod h1:xXSxFWk/zyiBrreQqgLTEnGYhufafVcCSXESBnqKOBU= github.com/projectdiscovery/interactsh v1.0.6-0.20220827132222-460cc6270053 h1:8Dr2q8BWxNgG5EO/YTyNyL83xzmYSDwysx4pMZzZx7I=