def log(str):
    global monitor
    if not monitor:
        try:
            from freeciv import monitor
        except ImportError:
            print str
            return
    monitor.log('features', str)
Exemple #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