-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add Kafka message to success log messages #307
Conversation
ca512c9
to
6229f74
Compare
@@ -46,6 +46,7 @@ const counters = { | |||
|
|||
export function incomingMessage (topic: string, message: Message) { | |||
log.trace({ message }, 'incoming message'); | |||
log.info({ message }, 'incoming message'); |
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.
I can't figure out where to see the trace
log messages but this would be a helpful one to see in the logs too so adding an info
log message.
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.
'trace' is a logging level. It's set in deployment/remediations-consumer-clowdapp.yaml but can be overridden in the app-interface config (it's currently set to 'info'). There's also a config parameter that controls kafaka logging, which appears to be disabled so we might want to turn that on in stage to see what we get. 🙂
1f99a0f
to
4696ec3
Compare
/retest |
4696ec3
to
ffc7f68
Compare
ffc7f68
to
e9e6471
Compare
/retest |
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.
👍🏻
@@ -46,6 +46,7 @@ const counters = { | |||
|
|||
export function incomingMessage (topic: string, message: Message) { | |||
log.trace({ message }, 'incoming message'); | |||
log.info({ message }, 'incoming message'); |
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.
'trace' is a logging level. It's set in deployment/remediations-consumer-clowdapp.yaml but can be overridden in the app-interface config (it's currently set to 'info'). There's also a config parameter that controls kafaka logging, which appears to be disabled so we might want to turn that on in stage to see what we get. 🙂
I think this would help a lot with debugging and understanding the kafka messages more.
Secure Coding Practices Checklist GitHub Link