summary refs log tree commit diff stats
path: root/code/debug.py
diff options
context:
space:
mode:
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()
+
+