Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save debug log even when no SCSI requests are coming in #182

Merged
merged 1 commit into from Apr 26, 2023

Conversation

PetteriAimonen
Copy link
Collaborator

Normally we wait for the STATUS phase to be able to save log file without disturbing SCSI processing. But this can cause the very last log messages not be saved to file.

This commit changes behavior only when debug log is enabled. Log will be saved after 2 seconds when no new SCSI requests are coming. Shouldn't affect functional behavior, but to limit any performance impacts it is limited to debug mode.

Normally we wait for the STATUS phase to be able to save
log file without disturbing SCSI processing. But this can
cause the very last log messages not be saved to file.

This commit changes behavior only when debug log is enabled.
Log will be saved after 2 seconds when no new SCSI requests are coming.
Shouldn't affect functional behavior, but to limit any performance impacts it is
limited to debug mode.
@aperezbios aperezbios merged commit 35febdb into main Apr 26, 2023
@aperezbios aperezbios deleted the dev_save_debug_log branch April 26, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants