mirror of https://github.com/daffainfo/nuclei.git
Add timestamp for debug logs (#3110)
* replaced and tested logs on debug * timestamp on debug logs * removed debug.timestamp and used instead new implementation on gologger * renamed global function to SetTimestamp(bool) * used logger * used DefaultLogger * updated gologger ref github.com/projectdiscovery/gologger@1c357ca * bumping gologger * resolved problem related to failing test Co-authored-by: Mzack9999 <mzack9999@protonmail.com>dev
parent
e0dcac1895
commit
63f1b9c2e5
|
@ -13,6 +13,7 @@ import (
|
||||||
|
|
||||||
"github.com/projectdiscovery/goflags"
|
"github.com/projectdiscovery/goflags"
|
||||||
"github.com/projectdiscovery/gologger"
|
"github.com/projectdiscovery/gologger"
|
||||||
|
"github.com/projectdiscovery/gologger/levels"
|
||||||
"github.com/projectdiscovery/interactsh/pkg/client"
|
"github.com/projectdiscovery/interactsh/pkg/client"
|
||||||
"github.com/projectdiscovery/nuclei/v2/internal/runner"
|
"github.com/projectdiscovery/nuclei/v2/internal/runner"
|
||||||
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
|
"github.com/projectdiscovery/nuclei/v2/pkg/catalog/config"
|
||||||
|
@ -322,6 +323,8 @@ on extensive configurability, massive extensibility and ease of use.`)
|
||||||
|
|
||||||
_ = flagSet.Parse()
|
_ = flagSet.Parse()
|
||||||
|
|
||||||
|
gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug)
|
||||||
|
|
||||||
if options.LeaveDefaultPorts {
|
if options.LeaveDefaultPorts {
|
||||||
http.LeaveDefaultPorts = true
|
http.LeaveDefaultPorts = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ require (
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/projectdiscovery/clistats v0.0.9
|
github.com/projectdiscovery/clistats v0.0.9
|
||||||
github.com/projectdiscovery/fastdialer v0.0.19
|
github.com/projectdiscovery/fastdialer v0.0.19
|
||||||
github.com/projectdiscovery/gologger v1.1.5
|
|
||||||
github.com/projectdiscovery/hmap v0.0.6
|
github.com/projectdiscovery/hmap v0.0.6
|
||||||
github.com/projectdiscovery/interactsh v1.0.6-0.20220827132222-460cc6270053
|
github.com/projectdiscovery/interactsh v1.0.6-0.20220827132222-460cc6270053
|
||||||
github.com/projectdiscovery/rawhttp v0.1.4
|
github.com/projectdiscovery/rawhttp v0.1.4
|
||||||
|
@ -73,6 +72,7 @@ require (
|
||||||
github.com/mitchellh/go-homedir v1.1.0
|
github.com/mitchellh/go-homedir v1.1.0
|
||||||
github.com/projectdiscovery/fasttemplate v0.0.2
|
github.com/projectdiscovery/fasttemplate v0.0.2
|
||||||
github.com/projectdiscovery/goflags v0.1.6
|
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/nvd v1.0.9
|
||||||
github.com/projectdiscovery/ratelimit v0.0.4
|
github.com/projectdiscovery/ratelimit v0.0.4
|
||||||
github.com/projectdiscovery/rdap v0.9.1-0.20221108103045-9865884d1917
|
github.com/projectdiscovery/rdap v0.9.1-0.20221108103045-9865884d1917
|
||||||
|
|
|
@ -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/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 h1:CT2Jrpzusca+dwNREMMz4RnAreJ0RqaISRU4SBcZC+M=
|
||||||
github.com/projectdiscovery/gologger v1.1.5/go.mod h1:bNyVaC1U/NpJtFkJltcesn01NR3K8Hg6RsLVce6yvrw=
|
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 h1:nwF553wjvDdFF6QtlVfB80koojn8WfJGOQvkW0dzDuk=
|
||||||
github.com/projectdiscovery/hmap v0.0.6/go.mod h1:xXSxFWk/zyiBrreQqgLTEnGYhufafVcCSXESBnqKOBU=
|
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=
|
github.com/projectdiscovery/interactsh v1.0.6-0.20220827132222-460cc6270053 h1:8Dr2q8BWxNgG5EO/YTyNyL83xzmYSDwysx4pMZzZx7I=
|
||||||
|
|
Loading…
Reference in New Issue