-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loganalyzer.py UnicodeDecodeError (#6524)
What is the motivation for this PR? Fix "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2203: invalid start byte" when running loganalyzer.py on dut. master and 202205 can hit this issue if syslog contains non-ascii characters. How did you do it? Add errors='ignore' parameter when open syslog file. How did you verify/test it? Run platform_tests/api/test_fan_drawer_fans.py::test_get_status and enable loganalyzer. Signed-off-by: Zhaohui Sun <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters