summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/trace/stream.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-13 02:11:35 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-13 21:44:26 +0800
commitfaa5dffbcc0a2649ee8f427905d45d7061975bcb (patch)
tree2ab9fe2bda4263befc45e03b15391933e17d6912 /lib/gitlab/ci/trace/stream.rb
parent7629c9ec57cb9b14f41c1163b61df1e6ea6b0ca1 (diff)
downloadgitlab-ce-faa5dffbcc0a2649ee8f427905d45d7061975bcb.tar.gz
After Trace#limit, we seek to the next line in case
of breaking ANSI sequence or Unicode
Diffstat (limited to 'lib/gitlab/ci/trace/stream.rb')
-rw-r--r--lib/gitlab/ci/trace/stream.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/ci/trace/stream.rb b/lib/gitlab/ci/trace/stream.rb
index 41dcf846fed..5e634bcac71 100644
--- a/lib/gitlab/ci/trace/stream.rb
+++ b/lib/gitlab/ci/trace/stream.rb
@@ -30,6 +30,7 @@ module Gitlab
last_bytes = stream_size
end
stream.seek(-last_bytes, IO::SEEK_END)
+ stream.readline
end
def append(data, offset)