Audio/AudioControl: Lots of fixes
[audiocontrol.git] / Logger.py
index 93bc12e..c0c7894 100644 (file)
--- a/Logger.py
+++ b/Logger.py
@@ -26,6 +26,7 @@ class Logger(object):
         text = '[%s] (%s) %s' %  (time.strftime("%H:%M:%S",time.localtime()),src, msg)
         if self._logfile:
             self._logfile.write(text+"\n")
+            self._logfile.flush()
         lines = self._wrapper.wrap(text)
         lines = lines[max(0,len(lines)-self._textwin.getmaxyx()[0]):]
         self._textwin.scroll(len(lines))