diff options
Diffstat (limited to 'simple.py')
-rwxr-xr-x[-rw-r--r--] | simple.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/simple.py b/simple.py index 3f0a4b4..f68553f 100644..100755 --- a/simple.py +++ b/simple.py @@ -1,7 +1,5 @@ #!/usr/bin/python2 -# ManaChat simple frontend. Works only on *nix - import asyncore import logging import os @@ -56,6 +54,9 @@ class DebugLogHandler(logging.Handler): def emit(self, record): self.clear_curr_input() + f = open("main.log", "a") + f.write(self.format(record)+"\n\r") + f.close() print self.format(record) sys.stdout.write(PROMPT + readline.get_line_buffer()) sys.stdout.flush() |