Ticket #7959 (closed: fixed)
Write Mantid log to temp directory if default location is not available
Reported by: | Stuart Campbell | Owned by: | Stuart Campbell |
---|---|---|---|
Priority: | major | Milestone: | Release 3.0 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #7988 | Tester: | Peter Peterson |
Description
We have had some issues with Mantid trying to write logs to the user config directory when it is not available.
A simple fix is to check that we can write to the directory, if not use the system temp directory as the log directory
Change History
comment:2 Changed 7 years ago by Stuart Campbell
Make system temp directory ultimate fallback for logs.
If we cannot write to user configuration directory, then write the logs to the systems temp directory.
refs #7959
Changeset: 39c5e6efc4ef46113a260b41ae03dbafd15d7c03
comment:3 Changed 7 years ago by Stuart Campbell
Added filename to logpath. refs #7959
Changeset: e63d8828616d0872ac502cbeedd8a76bd2444e04
comment:4 Changed 7 years ago by Stuart Campbell
- Status changed from inprogress to verify
- Resolution set to fixed
comment:5 Changed 7 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
comment:7 Changed 7 years ago by Peter Peterson
Looks good for the case of the snsdata running autoreduction, it is not a generic fix which is what #7988 is for.