Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/logging.py

    r2448 r2323  
    5656            logs = self.logger.pop().strip()
    5757            if len(logs) > 0:
    58                 if rcParams['verbose']:
    59                     print >>sys.stdout, logs
    60                     if hasattr(sys.stdout, "flush"):
    61                         sys.stdout.flush()
     58                print >>sys.stdout, logs
     59                sys.stdout.flush()
    6260        self._log = ""
    6361
     
    112110        level = "INFO"
    113111        try:
    114             try:
    115                 val = f(*args, **kw)
    116                 return val
    117             except Exception, ex:
    118                 level = "ERROR"
    119                 asaplog.push(str(ex))
    120                 if rcParams['verbose']:
    121                     pass
    122                 else:
    123                     raise
     112            val = f(*args, **kw)
     113            return val
     114        except Exception, ex:
     115            level = "ERROR"
     116            asaplog.push(str(ex))
     117            if rcParams['verbose']:
     118                pass
     119            else:
     120                raise
    124121        finally:
    125122            asaplog.post(level, f.func_name)
     123            #asaplog.post(level, ".".join([f.__module__,f.func_name]))
    126124    return wrap_it
    127125
Note: See TracChangeset for help on using the changeset viewer.