You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When passing a custom logger (e.g., the one in the standard library of golang), it is passed to the go-kafka-connect-couchbase part but not the go-dcp-client part.
To Reproduce
Steps to reproduce the behavior:
Create a custom logger like logger = log.New(os.Stdout, "cb2kafka: ", log.Ldate | log.Ltime | log.Llongfile)
Pass it to the connector like connector, err := cb2kafka.NewConnectorWithLoggers(configFile, mapper, logger, logger)
Describe the bug
When passing a custom logger (e.g., the one in the standard library of golang), it is passed to the go-kafka-connect-couchbase part but not the go-dcp-client part.
To Reproduce
Steps to reproduce the behavior:
logger = log.New(os.Stdout, "cb2kafka: ", log.Ldate | log.Ltime | log.Llongfile)
connector, err := cb2kafka.NewConnectorWithLoggers(configFile, mapper, logger, logger)
cb2kafka: 2023/03/21 15:34:40 /root/go-cb-connector/main.go:40: loading config file from: /etc/configs/config.yml
{"level":"debug","time":"2023-03-21T15:34:40Z","message":"loaded checkpoint"}
{"level":"debug","time":"2023-03-21T15:34:40Z","message":"stream started"}
{"level":"info","time":"2023-03-21T15:34:40Z","message":"dcp stream started"}
{"level":"info","time":"2023-03-21T15:34:40Z","message":"metric middleware registered on path /metrics"} {"level":"info","time":"2023-03-21T15:34:40Z","message":"api starting on port 8080"} cb2kafka: 2023/03/21 15:34:50 /go/pkg/mod/github.com/segmentio/[email protected]/writer.go:1123: writing 1 messages to dev-cb6-bucket-20230310 (partition: 28) │
{"level":"debug","time":"2023-03-21T15:34:50Z","message":"saved checkpoint"}
Expected behavior
All the logs should look like the first line.
Screenshots
N/A
Version (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: