-
Notifications
You must be signed in to change notification settings - Fork 0
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
Channel: Logging output #178
Comments
Their stderr should be forwarded to the daemon logs: icinga-notifications/internal/channel/plugin.go Lines 70 to 76 in cef9ec2
icinga-notifications/internal/channel/plugin.go Lines 157 to 166 in cef9ec2
While not perfect (in particular, this doesn't allow to convey the severity of a message at the moment), this should be enough for debugging purposes. |
Thanks, I wasn't aware of this as I mostly looked into |
Currently the channels are not able to log anything, which makes debugging unnecessarily difficult1.
Due to the strict request-response API logic, a new "Log" method should be introduced, which just got consumed from the RPC,
wrapping the message and logging it to icinga-notification's logger. On the channel's side, a specially configured zap logger is needed.
Footnotes
I just stumbled about Channel Form: Unexpected default value behavior as placeholder icinga-notifications-web#154 again, even as I filled this issue back then.. ↩
The text was updated successfully, but these errors were encountered: