Changeset 2323 for trunk/python


Ignore:
Timestamp:
10/05/11 10:57:30 (13 years ago)
Author:
Malte Marquarding
Message:

need to flush stdout to make log messages show immediately

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/logging.py

    r2315 r2323  
    44
    55import inspect
     6import sys
    67from asap.env import is_casapy
    78from asap.parameters import rcParams
     
    5556            logs = self.logger.pop().strip()
    5657            if len(logs) > 0:
    57                 print logs
     58                print >>sys.stdout, logs
     59                sys.stdout.flush()
    5860        self._log = ""
    5961
Note: See TracChangeset for help on using the changeset viewer.