#3966 closed defect (fixed)
[PATCH] Empty simlog directories
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 21 |
Component: | Core engine | Keywords: | patch |
Cc: | Patch: |
Description
#3255 changed the directory structure of replays, simlogs and oosdumps and create a subdirectory with the current date in the name.
However it creates an empty directory for the oosdump even if there was no OOS (reported by Vladislav).
As mentioned by leper on 2016-03-14, the code should also create the sim-log directory if the user deletes the directory while the app is running that writes to that path.
Attachments (1)
Change History (4)
by , 8 years ago
Attachment: | t3966_no_empty_simlog_directories_v1.patch added |
---|
comment:1 by , 8 years ago
Cc: | added |
---|---|
Keywords: | patch review added |
Summary: | Empty simlog directories → [PATCH] Empty simlog directories |
comment:3 by , 8 years ago
Cc: | removed |
---|---|
Keywords: | review removed |
Thanks leper for a quick review on irc.
Note:
See TracTickets
for help on using tickets.
The uploaded patch fixes the empty direcory bug reported by Vladislav by moving the createDir into the if-statement.
With regards to lepers codestyle objections about the two commits r17761 and r17776 of #3255 from 2016-03-14:
-> So that part of the code is still valid.
-> (Still true)
->
if(
wasn't in the code that I added. The commit significantly changed the logic, so it shouldn't include whitespace changes in untouched lines, to keep the changeset as small and readable as possible.getDateIndexSubdirectory
tocreateDateIndexSubdirectory
CreateDirectories
back and added also aLOGWARNING
. If we have code to cover such an edge case, it should be treated correctly at least.