Opened 4 years ago

Closed 4 years ago

#324 closed defect (fixed)

Set logging to capture warnings

Reported by: ajj Owned by:
Priority: major Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView QA and testing

Description

Set logging to use logging.capturewarnings(True)

Change History (4)

comment:1 Changed 4 years ago by butler

Not critical… could be moved to 4 if we dont' have time

comment:2 Changed 4 years ago by pkienzle

After logging.basicConfig in sasview/sasview.py, line 15.

comment:3 Changed 4 years ago by krzywon

I added this in my latest push and tested it using warning instead of info in places. The warnings are now captured and sent to the console log. I think we might also want to have anything that goes into the console log get output into the sasview.log file for the users records. I am leaving the ticket open for now until we decide whether or not we should do this.

comment:4 Changed 4 years ago by krzywon

  • Resolution set to fixed
  • Status changed from new to closed

Errors and warnings that are posted to the console log are now also added to the sasview.log file. Status messages (e.g. "INFO: Fitting complete!") are not to limit the size of the file.

Note: See TracTickets for help on using tickets.