Changes in trunk/python/logging.py [2448:2323]
- File:
-
- 1 edited
-
trunk/python/logging.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/logging.py
r2448 r2323 56 56 logs = self.logger.pop().strip() 57 57 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() 62 60 self._log = "" 63 61 … … 112 110 level = "INFO" 113 111 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 124 121 finally: 125 122 asaplog.post(level, f.func_name) 123 #asaplog.post(level, ".".join([f.__module__,f.func_name])) 126 124 return wrap_it 127 125
Note:
See TracChangeset
for help on using the changeset viewer.
