summary refs log tree commit diff stats
path: root/code/debug.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-22 23:56:47 +0100
committerhut <hut@lavabit.com>2009-11-22 23:56:47 +0100
commit2b3db775535290cbbaae570dc79ed3438afe4795 (patch)
treea385d5c5a5491c4a19b77c945030ea141926de76 /code/debug.py
parentec338c02cf3b31d2ed1438752c338bd6123f3044 (diff)
downloadranger-2b3db775535290cbbaae570dc79ed3438afe4795.tar.gz
the basic loop
Diffstat (limited to 'code/debug.py')
-rw-r--r--code/debug.py12
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()
+
+