As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit ffd55318 authored by Nick Thomas's avatar Nick Thomas
Browse files

Merge branch 'sh-fix-nonatomic-puts' into 'master'

Fix newlines not appearing between new log entries

Closes gitlab-com/gl-infra/infrastructure#5017

See merge request gitlab-org/gitlab-shell!242
parents 181b9b09 95e29278
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -68,9 +68,10 @@ class GitlabLogger
case log_format
when 'json'
log_file.puts format_json(data)
# Don't use IO#puts because of https://bugs.ruby-lang.org/issues/14042
log_file.print("#{format_json(data)}\n")
else
log_file.puts format_text(data)
log_file.print("#{format_text(data)}\n")
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment