Skip to content

Commit

Permalink
remove disturbing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
buixor committed Jan 4, 2021
1 parent 1fe80ec commit 9ebd0bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iptables_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func (ctx *ipTablesContext) shutDown() error {
/*if the set doesn't exist, don't frigthen user with error messages*/
if strings.Contains(string(out), "Set crowdsec-blacklists doesn't exist.") {
log.Infof("ipset 'crowdsec-blacklists' doesn't exist, skip")
} else if strings.Contains(string(out), "Set crowdsec6-blacklists doesn't exist.") {
log.Infof("ipset 'crowdsec6-blacklists' doesn't exist, skip")
} else {
log.Errorf("error while removing set entry in iptables : %v --> %s", err, string(out))
}
Expand Down

0 comments on commit 9ebd0bd

Please sign in to comment.