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

[amqphandler] Don't truncate debug logs #168

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

mlohvynenko
Copy link
Collaborator

No description provided.

@mlohvynenko mlohvynenko force-pushed the feature_configure_log_trim branch 4 times, most recently from 2c702bb to 26df9cf Compare September 18, 2024 11:25
@@ -60,6 +60,8 @@ const (
type AmqpHandler struct { //nolint:stylecheck
sync.Mutex

disableLogsTrim bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see why we need to have it configurable. Let's just remove log trimming at all.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JIRA task: https://jiraeu.epam.com/browse/EPMPAOS-5351
Title: [AOS Core] Add the ability not to truncate the unit's messages to the cloud.

So the task is to add an ability to not truncate logs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed to not truncate logs at all.
Updated PR.

config/config.go Outdated Show resolved Hide resolved
amqphandler/amqphandler.go Outdated Show resolved Hide resolved
@mlohvynenko mlohvynenko force-pushed the feature_configure_log_trim branch 2 times, most recently from 9e24c01 to ba2aa6a Compare September 23, 2024 10:29
Signed-off-by: Mykhailo Lohvynenko <[email protected]>
Copy link

sonarcloud bot commented Oct 2, 2024

@mlohvynenko mlohvynenko changed the title [amqphandler] Check config value to disable log trim [amqphandler] Don't truncate debug logs Oct 2, 2024
@al1img al1img merged commit e55059c into aosedge:develop Oct 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants