Ignore:
Timestamp:
Apr 4, 2017 11:10:30 AM (7 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
01febaf
Parents:
9c0f3c17 (diff), dd11014 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of github.com:SasView/sasview into logger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitting.py

    red2276f r9c0f3c17  
    4848 
    4949from . import models 
     50 
     51logger = logging.getLogger(__name__) 
    5052 
    5153MAX_NBR_DATA = 4 
     
    119121        self.page_finder = {} 
    120122        # Log startup 
    121         logging.info("Fitting plug-in started") 
     123        logger.info("Fitting plug-in started") 
    122124        self.batch_capable = self.get_batch_capable() 
    123125 
     
    346348                                page.formfactorbox.SetLabel(current_val) 
    347349        except: 
    348             logging.error("update_custom_combo: %s", sys.exc_value) 
     350            logger.error("update_custom_combo: %s", sys.exc_value) 
    349351 
    350352    def set_edit_menu(self, owner): 
     
    586588                msg = "Fitting: cannot deal with the theory received" 
    587589                evt = StatusEvent(status=msg, info="error") 
    588                 logging.error("set_theory " + msg + "\n" + str(sys.exc_value)) 
     590                logger.error("set_theory " + msg + "\n" + str(sys.exc_value)) 
    589591                wx.PostEvent(self.parent, evt) 
    590592 
     
    17961798        Handle exception from calculator by posting it as an error. 
    17971799        """ 
    1798         logging.error("".join(traceback.format_exception(etype, value, tb))) 
     1800        logger.error("".join(traceback.format_exception(etype, value, tb))) 
    17991801        msg = traceback.format_exception(etype, value, tb, limit=1) 
    18001802        evt = StatusEvent(status="".join(msg), type="stop", info="error") 
Note: See TracChangeset for help on using the changeset viewer.