Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复了因特定日志条目导致的崩溃问题
例如:\n2021-08-25T07:00:00.000000000Z stdout F xxx 导致的日志崩溃。
优化了在行尾多行模式匹配到 "xxx\nend" 时的日志回退逻辑
这种情况下应该因为end没有换行符,应该回退所有日志
解决了行尾多行模式下当 containerd 日志以 "xxx\nend\npart log" 格式出现时的日志回退问题
例如,在遇到以下日志序列时,如果 "end log" 匹配成功,则应将日志回退至 "2021-08-25T07:00:00.000000000Z stdout F end log" 的位置,回退行数为3行: