-
Notifications
You must be signed in to change notification settings - Fork 18
🌱 enable mqtt logger info #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package mqtt | ||
|
|
||
| import ( | ||
| "github.com/eclipse/paho.golang/paho/log" | ||
| "k8s.io/klog/v2" | ||
| ) | ||
|
|
||
| type PahoErrorLogger struct { | ||
| } | ||
|
|
||
| type PahoDebugLogger struct { | ||
| } | ||
|
|
||
| var _ log.Logger = &PahoErrorLogger{} | ||
| var _ log.Logger = &PahoDebugLogger{} | ||
|
|
||
| func (l *PahoErrorLogger) Println(v ...interface{}) { | ||
| klog.Error(v...) | ||
| } | ||
|
|
||
| func (l *PahoErrorLogger) Printf(format string, v ...interface{}) { | ||
| klog.Errorf(format, v...) | ||
| } | ||
|
|
||
| func (l *PahoDebugLogger) Println(v ...interface{}) { | ||
| klog.V(4).Info(v...) | ||
| } | ||
|
|
||
| func (l *PahoDebugLogger) Printf(format string, v ...interface{}) { | ||
| klog.V(4).Infof(format, v...) | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Add repository boilerplate/SPDX header.
OCM repos typically enforce a license header check. Add the project’s standard header (or SPDX tag) to avoid CI failures.
Run to detect the expected style and where it’s missing:
🏁 Script executed:
Length of output: 35510
🏁 Script executed:
Length of output: 9674
Add repository license/SPDX header to pkg/cloudevents/generic/options/mqtt/log.go
pkg/cloudevents/generic/options/mqtt/log.go currently starts with "package mqtt" and is missing the project's license/SPDX header — add the standard header (copy from pkg/helpers/client.go) to the top to avoid CI header-check failures.
🤖 Prompt for AI Agents