Esempio n. 1
0
def log(str):
    global monitor
    if not monitor:
        try:
            from freeciv import monitor
        except ImportError:
            print str
            return
    monitor.log('features', str)
Esempio n. 2
0
 def console_line(self, text):
     if self.out_window_callback:
         self.out_window_callback(text)
     monitor.log('outwindow', text)
     if features.get('debug.outwindow'):
         print '[OutWindow]', text