Skip to content

Commit

Permalink
fix: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
huantt committed Dec 4, 2023
1 parent 34b351a commit ea2216c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/huantt/kafka-dump/pkg/kafka_utils"
"github.com/huantt/kafka-dump/pkg/log"
"github.com/spf13/cobra"
"log/slog"
"time"
)

Expand Down Expand Up @@ -86,7 +85,7 @@ func CreateStreamCmd() (*cobra.Command, error) {
)
transferredCount, err := streamer.Run()
if err != nil {
slog.Error(err.Error())
log.Error(err.Error())
return
}
log.Infof("Transferred %d messages from %s to %s", transferredCount, fromTopic, toTopic)
Expand Down

0 comments on commit ea2216c

Please sign in to comment.