diff options
author | hut <hut@lavabit.com> | 2009-11-22 23:56:47 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-11-22 23:56:47 +0100 |
commit | 2b3db775535290cbbaae570dc79ed3438afe4795 (patch) | |
tree | a385d5c5a5491c4a19b77c945030ea141926de76 /code/debug.py | |
parent | ec338c02cf3b31d2ed1438752c338bd6123f3044 (diff) | |
download | ranger-2b3db775535290cbbaae570dc79ed3438afe4795.tar.gz |
the basic loop
Diffstat (limited to 'code/debug.py')
-rw-r--r-- | code/debug.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/debug.py b/code/debug.py new file mode 100644 index 00000000..12d5d654 --- /dev/null +++ b/code/debug.py @@ -0,0 +1,12 @@ +# a module to faciliate debuggin + +LOGFILE = '/tmp/errorlog' + +def log(txt): + f = open(LOGFILE, 'a') + f.write("r1: ") + f.write(str(txt)) + f.write("\n") + f.close() + + |