-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1309 from openmeterio/fix/use-confluent-kafka-client
fix: confluent cloud connectivity issues
- Loading branch information
Showing
8 changed files
with
102 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package kafka | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
type LoggerFunc func(fmt string, args ...any) | ||
|
||
type SaramaLoggerAdaptor struct { | ||
loggerFunc LoggerFunc | ||
} | ||
|
||
func (s *SaramaLoggerAdaptor) Print(v ...interface{}) { | ||
s.loggerFunc(fmt.Sprint(v...)) | ||
} | ||
|
||
func (s *SaramaLoggerAdaptor) Printf(format string, v ...interface{}) { | ||
s.loggerFunc(fmt.Sprintf(format, v...)) | ||
} | ||
|
||
func (s *SaramaLoggerAdaptor) Println(v ...interface{}) { | ||
s.loggerFunc(fmt.Sprint(v...)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters