Ignore:
Timestamp:
08/05/10 14:40:38 (14 years ago)
Author:
Malte Marquarding
Message:

Ticket #193: the rcParamsverbose? flag is only used in standard asap cli mode. Otherwise log messages are always send to the logger and one needs to call asaplog.disable()/asaplog.enable() to controls this. I have also added the function name as the log origin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/linecatalog.py

    r1826 r1859  
    77__revision__ = "$Revision$"
    88from asap._asap import linecatalog as lcbase
    9 from asap.parameters import rcParams
    109from asap.logging import asaplog
    1110import os
     
    3029        else:
    3130            msg = "File '%s' not found" % fpath
    32             if rcParams['verbose']:
    33                 #print msg
    34                 asaplog.push( msg )
    35                 print_log( 'ERROR' )
    36                 return
    37             else:
    38                 raise IOError(msg)
     31            raise IOError(msg)
    3932
    4033    def __repr__(self):
     
    9992            if not overwrite:
    10093                msg = "File %s exists." % name
    101                 if rcParams['verbose']:
    102                     #print msg
    103                     asaplog.push( msg )
    104                     print_log( 'ERROR' )
    105                     return
    106                 else:
    107                     raise IOError(msg)
     94                raise IOError(msg)
    10895        lcbase.save(self, name)
    10996
Note: See TracChangeset for help on using the changeset viewer.