Skip to content

Fix log extraction module#686

Merged
lguohan merged 1 commit intosonic-net:masterfrom
stepanblyschak:extract_log_fix
Aug 27, 2018
Merged

Fix log extraction module#686
lguohan merged 1 commit intosonic-net:masterfrom
stepanblyschak:extract_log_fix

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

Signed-off-by: Stepan Blyschak stepanb@mellanox.com

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

After trying to optimize performance of extract_log module I broke the module's functionality:
filenames in combine_logs_and_save function are the files to copy for log analysis. Finding start line in ordered filenames list caused only the last file to copy. Now, it starts from the last and copies all the rest files as well.

How did you verify/test it?

Simulated a lot of logs to achive situation where start marker and end marker are in seperate log files and run CRM test which uses loganalyzer.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
@lguohan lguohan merged commit b6e60da into sonic-net:master Aug 27, 2018
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants