Skip to content
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

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

marleystipich2
Copy link
Contributor

I think this would help a lot with debugging and understanding the kafka messages more.

Secure Coding Practices Checklist GitHub Link

- https://github.com/RedHatInsights/secure-coding-checklist

## Secure Coding Checklist
- [ ] Input Validation
- [ ] Output Encoding
- [ ] Authentication and Password Management
- [ ] Session Management
- [ ] Access Control
- [ ] Cryptographic Practices
- [ ] Error Handling and Logging
- [ ] Data Protection
- [ ] Communication Security
- [ ] System Configuration
- [ ] Database Security
- [ ] File Management
- [ ] Memory Management
- [ ] General Coding Practices

@marleystipich2 marleystipich2 requested a review from rexwhite as a code owner July 19, 2024 20:22
@marleystipich2 marleystipich2 force-pushed the add-kafka-message-debug branch 2 times, most recently from ca512c9 to 6229f74 Compare July 19, 2024 20:33
@@ -46,6 +46,7 @@ const counters = {

export function incomingMessage (topic: string, message: Message) {
log.trace({ message }, 'incoming message');
log.info({ message }, 'incoming message');
Copy link
Contributor Author

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.

Copy link
Collaborator

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. 🙂

@marleystipich2 marleystipich2 force-pushed the add-kafka-message-debug branch 2 times, most recently from 1f99a0f to 4696ec3 Compare July 22, 2024 14:09
@marleystipich2
Copy link
Contributor Author

/retest

@marleystipich2 marleystipich2 force-pushed the add-kafka-message-debug branch from 4696ec3 to ffc7f68 Compare July 22, 2024 18:46
@marleystipich2 marleystipich2 force-pushed the add-kafka-message-debug branch from ffc7f68 to e9e6471 Compare July 22, 2024 20:28
@marleystipich2
Copy link
Contributor Author

/retest

Copy link
Collaborator

@rexwhite rexwhite left a 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');
Copy link
Collaborator

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. 🙂

@marleystipich2 marleystipich2 merged commit 3ab31d4 into master Jul 23, 2024
4 checks passed
@rexwhite rexwhite deleted the add-kafka-message-debug branch October 14, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants