diff options
Diffstat (limited to 'simple.py')
-rwxr-xr-x[-rw-r--r--] | simple.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simple.py b/simple.py index 3f0a4b4..4584588 100644..100755 --- a/simple.py +++ b/simple.py @@ -56,6 +56,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() |