Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 3463ae5

Browse files
committed
⬆️ Update dependencies
1 parent 2a2831c commit 3463ae5

File tree

7 files changed

+70
-37
lines changed

7 files changed

+70
-37
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project should be documented in this file.
44

5+
### v1.1.0
6+
7+
- Upgrade dependencies.
8+
59
### v1.0.3
610

711
- Remove unused package

go.mod

+9-4
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ go 1.14
55
require (
66
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
77
github.com/briandowns/spinner v1.12.0
8-
github.com/bwmarrin/discordgo v0.22.0
8+
github.com/bwmarrin/discordgo v0.23.2
9+
github.com/fatih/color v1.10.0 // indirect
910
github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible
1011
github.com/kirsle/configdir v0.0.0-20170128060238-e45d2f54772f
1112
github.com/logrusorgru/aurora v2.0.3+incompatible
12-
github.com/projectdiscovery/gologger v1.0.1
13+
github.com/projectdiscovery/gologger v1.1.4
1314
github.com/prometheus/client_golang v1.9.0
15+
github.com/prometheus/common v0.17.0 // indirect
16+
github.com/prometheus/procfs v0.6.0 // indirect
1417
github.com/remeh/sizedwaitgroup v1.0.0
1518
github.com/satyrius/gonx v1.3.0
16-
github.com/slack-go/slack v0.7.4
19+
github.com/slack-go/slack v0.8.1
1720
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
1821
github.com/valyala/fastjson v1.6.3
19-
google.golang.org/protobuf v1.24.0 // indirect
22+
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect
23+
golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073 // indirect
24+
google.golang.org/protobuf v1.25.0 // indirect
2025
gopkg.in/validator.v2 v2.0.0-20200605151824-2b28d334fa05
2126
gopkg.in/yaml.v2 v2.4.0
2227
)

go.sum

+46-22
Large diffs are not rendered by default.

internal/runner/banner.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77

88
// showBanner is used to show the banner to the user
99
func showBanner() {
10-
gologger.Printf("%s\n\n", common.Banner)
11-
gologger.Printf("\t%s\n\n", common.Email)
10+
gologger.Print().Msgf("%s\n\n", common.Banner)
11+
gologger.Print().Msgf("\t%s\n\n", common.Email)
1212
if common.Development {
13-
gologger.Labelf("This tool is under development!")
14-
gologger.Labelf("Please submit a report if an error occurs.")
13+
gologger.Warning().Msg("This tool is under development!")
14+
gologger.Warning().Msg("Please submit a report if an error occurs.")
1515
}
1616
}

internal/runner/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import (
88

99
func rmCache() {
1010
cache.Purge()
11-
gologger.Infof("All local cached resources have been removed.")
11+
gologger.Info().Msg("All local cached resources have been removed.")
1212
errors.Abort(9)
1313
}

internal/runner/runner.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/acarl005/stripansi"
1212
"github.com/logrusorgru/aurora"
13-
log "github.com/projectdiscovery/gologger"
13+
"github.com/projectdiscovery/gologger"
1414
"github.com/prometheus/client_golang/prometheus/promhttp"
1515
"github.com/remeh/sizedwaitgroup"
1616
"github.com/satyrius/gonx"
@@ -43,11 +43,11 @@ func New(options *common.Options) {
4343
}()
4444

4545
metrics.Init()
46-
log.Infof("Listening metrics on http://" + promserve + promendpoint)
46+
gologger.Info().Msgf("Listening metrics on http://" + promserve + promendpoint)
4747
}
4848

4949
jobs := make(chan *gonx.Entry)
50-
log.Infof("Analyzing...")
50+
gologger.Info().Msg("Analyzing...")
5151

5252
con := options.Concurrency
5353
swg := sizedwaitgroup.New(con)
@@ -121,5 +121,5 @@ func New(options *common.Options) {
121121
close(jobs)
122122

123123
swg.Wait()
124-
log.Infof("Done!")
124+
gologger.Info().Msg("Done!")
125125
}

pkg/errors/errors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ func Exit(err string) {
1414
msg += e
1515
Show(msg)
1616
}
17-
gologger.Infof("Use \"-h\" flag for more info about command.")
17+
gologger.Info().Msgf("Use \"-h\" flag for more info about command.")
1818
Abort(9)
1919
}
2020
}
2121

2222
// Show error message
2323
func Show(msg string) {
24-
gologger.Errorf("%s\n", msg)
24+
gologger.Error().Msgf("%s\n", msg)
2525
}

0 commit comments

Comments
 (0)