Skip to content

Commit 02ed3aa

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

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

cmd/vulnerability-db-consumer/main.go

Lines changed: 4 additions & 0 deletions
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.Debug("using noop notifier")
102103
return notify.NewNoopNotifier(), nil
103104
}
104105
if conf.SNS.Enabled && !conf.Kafka.Enabled {
106+
logger.Debug("using SNS notifier")
105107
return buildSNSNotifier(conf, logger)
106108
}
107109
if !conf.SNS.Enabled && conf.Kafka.Enabled {
110+
logger.Debug("using Kafka notifier")
108111
return buildKafkaNotifier(conf, logger)
109112
}
110113
// Multi Notifier
114+
logger.Debug("using multi notifier")
111115
k, err := buildKafkaNotifier(conf, logger)
112116
if err != nil {
113117
return nil, err

0 commit comments

Comments
 (0)