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