File tree 1 file changed +4
-0
lines changed
cmd/vulnerability-db-consumer
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,19 @@ func main() {
99
99
// we can get rid of SNS and multi implementations of notifier and just use Kafka.
100
100
func buildNotifier (conf * config , logger * log.Logger ) (notify.Notifier , error ) {
101
101
if ! conf .SNS .Enabled && ! conf .Kafka .Enabled {
102
+ logger .Info ("using noop notifier" )
102
103
return notify .NewNoopNotifier (), nil
103
104
}
104
105
if conf .SNS .Enabled && ! conf .Kafka .Enabled {
106
+ logger .Info ("using SNS notifier" )
105
107
return buildSNSNotifier (conf , logger )
106
108
}
107
109
if ! conf .SNS .Enabled && conf .Kafka .Enabled {
110
+ logger .Info ("using Kafka notifier" )
108
111
return buildKafkaNotifier (conf , logger )
109
112
}
110
113
// Multi Notifier
114
+ logger .Info ("using multi notifier" )
111
115
k , err := buildKafkaNotifier (conf , logger )
112
116
if err != nil {
113
117
return nil , err
You can’t perform that action at this time.
0 commit comments