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

Flush stdout kwarg #39

Merged
merged 2 commits into from
May 15, 2024
Merged

Flush stdout kwarg #39

merged 2 commits into from
May 15, 2024

Conversation

Moasib-Arif
Copy link
Contributor

What

Added flush_sdout_after_log_entry kwag to dp logger. By default it is set to false. when it is set to true it will flush the buffer after each logging statement

Additional Info: "logs are getting concatenated (so 2 or more logging statements can get sent to cloudwatch as a single event via glue). This is messy and will cause a lot of issues if/when we move into the world of logging to elastic search/kibana.
This is happening because more than one log message gets sent to the buffer (memory for standard out) before it gets flushed (printed to console)."

How to review

check the logic or any typo's

Who can review

Anyone

Copy link
Contributor

@mikeAdamss mikeAdamss left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Moasib-Arif Moasib-Arif merged commit e8c36ba into develop May 15, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants