Ticket #7959 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

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:1 Changed 7 years ago by Stuart Campbell

  • Status changed from new to inprogress

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:6 Changed 7 years ago by Peter Peterson

  • Blocking 7988 added

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.

comment:8 Changed 7 years ago by Peter Peterson

  • Status changed from verifying to closed

Merge remote branch 'origin/feature/7959_log_to_temp'

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8804

Note: See TracTickets for help on using tickets.