Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

🔊 Force flushing logs after processing a message #40

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/pipefy_message/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def process_message
log_text: "Message received by consumer poller, processed " \
"in #{elapsed_time_ms} milliseconds"
}, context, correlation_id, event_id))
$stdout.flush # Ensure everything is flushed to log after processing a message
ferreira-mev marked this conversation as resolved.
Show resolved Hide resolved
end
rescue StandardError => e
context = "NO_CONTEXT_RETRIEVED" unless defined? context
Expand Down