log errors

This commit is contained in:
Ray 2008-09-25 13:12:42 -04:00
parent d8eadd1d17
commit 66bfe6a68a

View File

@ -38,6 +38,9 @@ import os
import thread
import Queue
errorfile = open('HUD-error.txt', 'w')
sys.stderr = errorfile
# pyGTK modules
import pygtk
import gtk
@ -105,13 +108,13 @@ def producer(): # This is the thread function
dataQueue.put(hand_no) # and puts result on the queue
if __name__== "__main__":
print "HUD_main starting"
sys.stderr.write("HUD_main starting\n")
try:
db_name = sys.argv[1]
except:
db_name = 'fpdb-p'
print "Using db name = ", db_name
sys.stderr.write("Using db name = %s\n" % (db_name))
config = Configuration.Config()
# db_connection = Database.Database(config, 'fpdb', 'holdem')