We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7873ce commit 5359df6Copy full SHA for 5359df6
internal/component/loki/source/file/internal/tail/file.go
@@ -167,11 +167,7 @@ func (f *File) readLine() (string, error) {
167
if err != nil {
168
return line, err
169
}
170
-
171
- line = strings.TrimRight(line, "\n")
172
- // Trim Windows line endings
173
- line = strings.TrimSuffix(line, "\r")
174
- return line, err
+ return strings.TrimRight(line, "\r\n"), err
175
176
177
// offset returns the current byte offset in the file where the next read will occur.
0 commit comments