Skip to content

Close log file before cleanup operations - #67

Merged
besendorf merged 2 commits into
mainfrom
fix/command_log_open
Jul 23, 2025
Merged

Close log file before cleanup operations#67
besendorf merged 2 commits into
mainfrom
fix/command_log_open

Conversation

@besendorf

Copy link
Copy Markdown
Collaborator

fixes #54
However the last few lines of the command.log are missing.

@roaree roaree left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good! Would it make sense to instead call defer log.CloseFileLog() somewhere else at the start of the run? This would avoid not having to worry about whether every possible execution path closes the log file. I defer to your judgement :)

@besendorf

Copy link
Copy Markdown
Collaborator Author

Took a while until I got the pun ;). Indeed defer is the better approach.

@besendorf
besendorf merged commit 02070c6 into main Jul 23, 2025
2 checks passed
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.

Age Encryption failed

2 participants