Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f212507

Browse files
committed
plugins: Log on the plugin start
Log the fact that a plugin is started. Signed-off-by: Michal Rostecki
1 parent 690b027 commit f212507

File tree

1 file changed

+4
-0
lines changed
  • pkg/plugins
    • plugins.go

1 file changed

+4
-0
lines changed

pkg/plugins/plugins.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package plugins
33
import (
44
"context"
55
"fmt"
6+
"log"
7+
68
"github.com/deepfence/PacketStreamer/pkg/config"
79
"github.com/deepfence/PacketStreamer/pkg/plugins/kafka"
810
"github.com/deepfence/PacketStreamer/pkg/plugins/s3"
@@ -18,6 +20,7 @@ func Start(ctx context.Context, config *config.Config) (chan<- string, error) {
1820
var plugins []chan<- string
1921

2022
if config.Output.Plugins.S3 != nil {
23+
log.Println("Starting S3 plugin")
2124
s3plugin, err := s3.NewPlugin(ctx, config.Output.Plugins.S3)
2225

2326
if err != nil {
@@ -29,6 +32,7 @@ func Start(ctx context.Context, config *config.Config) (chan<- string, error) {
2932
}
3033

3134
if config.Output.Plugins.Kafka != nil {
35+
log.Println("Starting Kafka plugin")
3236
kafkaPlugin, err := kafka.NewPlugin(config.Output.Plugins.Kafka)
3337

3438
if err != nil {

0 commit comments

Comments
(0)