Master controller debugging for crashes.

Warning: This can cause up to 100 writes to a file per second, which may cause notable CPU consumption. Should remove this, or replace it with a C DLL at some point.
This commit is contained in:
cib
2012-06-22 04:18:00 -07:00
parent f5ba6478fe
commit 19cf03546c
3 changed files with 61 additions and 45 deletions
+5
View File
@@ -3,6 +3,11 @@
/world/New()
..()
// Setup crashlog for debugging purposes
crashlog = file("crashlog.txt")
crashlog << "==========================================================\n"
crashlog << "** A new round has started.\n"
diary = file("data/logs/[time2text(world.realtime, "YYYY/MM-Month/DD-Day")].log")
diary << {"