Skip to content

Commit a64e31f

Browse files
author
Daniel Jimenez
committed
Add debug log for notifier set up during start up
1 parent d3e8b27 commit a64e31f

File tree

1 file changed

+4
-0
lines changed
  • cmd/vulnerability-db-consumer

1 file changed

+4
-0
lines changed

Diff for: cmd/vulnerability-db-consumer/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,19 @@ func main() {
9999
// we can get rid of SNS and multi implementations of notifier and just use Kafka.
100100
func buildNotifier(conf *config, logger *log.Logger) (notify.Notifier, error) {
101101
if !conf.SNS.Enabled && !conf.Kafka.Enabled {
102+
logger.Info("using noop notifier")
102103
return notify.NewNoopNotifier(), nil
103104
}
104105
if conf.SNS.Enabled && !conf.Kafka.Enabled {
106+
logger.Info("using SNS notifier")
105107
return buildSNSNotifier(conf, logger)
106108
}
107109
if !conf.SNS.Enabled && conf.Kafka.Enabled {
110+
logger.Info("using Kafka notifier")
108111
return buildKafkaNotifier(conf, logger)
109112
}
110113
// Multi Notifier
114+
logger.Info("using multi notifier")
111115
k, err := buildKafkaNotifier(conf, logger)
112116
if err != nil {
113117
return nil, err

0 commit comments

Comments
 (0)