Changeset 4e080980 in sasview


Ignore:
Timestamp:
Mar 31, 2015 3:48:49 PM (4 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
66f21cd
Parents:
4342107f
Message:

include traceback in sasview errors so we can debug more easily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/sasview.py

    rf76bf17 r4e080980  
    1212import sys 
    1313import logging 
    14 from shutil import copy 
     14import traceback 
     15 
    1516logging.basicConfig(level=logging.INFO, 
    1617                    format='%(asctime)s %(levelname)s %(message)s', 
     
    109110            self.gui.add_perspective(fitting_plug) 
    110111        except Exception as inst: 
    111             logging.error("Fitting problems: " + str(inst)) 
    112             logging.error("%s: could not find Fitting plug-in module"% APP_NAME)  
    113             logging.error(sys.exc_value) 
     112            logging.error("%s: could not find Fitting plug-in module"% APP_NAME) 
     113            logging.error(traceback.format_exc()) 
    114114 
    115115        # P(r) perspective 
     
    120120        except: 
    121121            logging.error("%s: could not find P(r) plug-in module"% APP_NAME) 
    122             logging.error(sys.exc_value)   
    123          
     122            logging.error(traceback.format_exc()) 
     123 
    124124        #Invariant perspective 
    125125        try: 
     
    131131            logging.error("%s: could not find Invariant plug-in module"% \ 
    132132                          APP_NAME) 
    133             logging.error(sys.exc_value)   
    134          
     133            logging.error(traceback.format_exc()) 
     134 
    135135        #Calculator perspective    
    136136        try: 
     
    141141            logging.error("%s: could not find Calculator plug-in module"% \ 
    142142                                                        APP_NAME) 
    143             logging.error(sys.exc_value)   
    144          
     143            logging.error(traceback.format_exc()) 
     144 
    145145             
    146146        # Add welcome page 
Note: See TracChangeset for help on using the changeset viewer.