Skip to content

Fix #4409: 修复导出的历史日志文件为空的问题#4411

Merged
Glavo merged 3 commits intoHMCL-dev:mainfrom
Glavo:fix-4409-export-log
Sep 7, 2025
Merged

Fix #4409: 修复导出的历史日志文件为空的问题#4411
Glavo merged 3 commits intoHMCL-dev:mainfrom
Glavo:fix-4409-export-log

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Sep 7, 2025

除此之外,我还进行了一些重构。现在在导出日志时不再需要创建临时文件,并且在原样复制日志文件的时候也不会因为读取日志文件发生错误而中断导出日志。

@Glavo Glavo requested a review from Copilot September 7, 2025 14:17

This comment was marked as outdated.

@HMCL-dev HMCL-dev deleted a comment from Copilot AI Sep 7, 2025
@Glavo Glavo requested a review from Copilot September 7, 2025 14:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where exported historical log files were empty (issue #4409). The solution refactors the log export mechanism to properly handle compressed log files and ensure reliable file content transfer.

Key changes:

  • Replaced temporary file-based decompression with direct stream processing
  • Added proper error handling and resource cleanup for compressed log files
  • Introduced a new helper method exportLogFile for consistent file processing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@HMCL-dev HMCL-dev deleted a comment from Copilot AI Sep 7, 2025
@HMCL-dev HMCL-dev deleted a comment from Copilot AI Sep 7, 2025
@HMCL-dev HMCL-dev deleted a comment from Copilot AI Sep 7, 2025
@Glavo Glavo merged commit 24fd2cf into HMCL-dev:main Sep 7, 2025
2 checks passed
@Glavo Glavo deleted the fix-4409-export-log branch September 7, 2025 14:31
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.

2 participants