clarify where some logged or printed messages were coming from exactly
This commit is contained in:
parent
0e6254ce0d
commit
6bf1824ee7
|
@ -191,7 +191,7 @@ class Betfair(HandHistoryConverter):
|
||||||
elif action.group('ATYPE') == 'checks':
|
elif action.group('ATYPE') == 'checks':
|
||||||
hand.addCheck( street, action.group('PNAME'))
|
hand.addCheck( street, action.group('PNAME'))
|
||||||
else:
|
else:
|
||||||
print "DEBUG: unimplemented readAction: '%s' '%s'" %(action.group('PNAME'),action.group('ATYPE'),)
|
sys.stderr.write( "DEBUG: unimplemented readAction: '%s' '%s'" %(action.group('PNAME'),action.group('ATYPE'),))
|
||||||
|
|
||||||
|
|
||||||
def readShowdownActions(self, hand):
|
def readShowdownActions(self, hand):
|
||||||
|
|
|
@ -67,7 +67,7 @@ class CarbonPoker(HandHistoryConverter):
|
||||||
if(type == "Holdem"):
|
if(type == "Holdem"):
|
||||||
gametype = gametype + ["hold"]
|
gametype = gametype + ["hold"]
|
||||||
else:
|
else:
|
||||||
print "Unknown gametype: '%s'" % (type)
|
print "Carbon: Unknown gametype: '%s'" % (type)
|
||||||
|
|
||||||
stakes = desc_node[0].getAttribute("stakes")
|
stakes = desc_node[0].getAttribute("stakes")
|
||||||
#TODO: no examples of anything except nlhe
|
#TODO: no examples of anything except nlhe
|
||||||
|
|
|
@ -395,7 +395,7 @@ class Database:
|
||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
except: # TODO: what error is a database error?!
|
except: # TODO: what error is a database error?!
|
||||||
err = traceback.extract_tb(sys.exc_info()[2])[-1]
|
err = traceback.extract_tb(sys.exc_info()[2])[-1]
|
||||||
print "*** Error: " + err[2] + "(" + str(err[1]) + "): " + str(sys.exc_info()[1])
|
print "*** Database Error: " + err[2] + "(" + str(err[1]) + "): " + str(sys.exc_info()[1])
|
||||||
else:
|
else:
|
||||||
if row and row[0]:
|
if row and row[0]:
|
||||||
self.hand_1day_ago = int(row[0])
|
self.hand_1day_ago = int(row[0])
|
||||||
|
@ -421,10 +421,10 @@ class Database:
|
||||||
if row and row[0]:
|
if row and row[0]:
|
||||||
self.date_nhands_ago[str(playerid)] = row[0]
|
self.date_nhands_ago[str(playerid)] = row[0]
|
||||||
c.close()
|
c.close()
|
||||||
print "date n hands ago = " + self.date_nhands_ago[str(playerid)] + "(playerid "+str(playerid)+")"
|
print "Database: date n hands ago = " + self.date_nhands_ago[str(playerid)] + "(playerid "+str(playerid)+")"
|
||||||
except:
|
except:
|
||||||
err = traceback.extract_tb(sys.exc_info()[2])[-1]
|
err = traceback.extract_tb(sys.exc_info()[2])[-1]
|
||||||
print "***Error: "+err[2]+"("+str(err[1])+"): "+str(sys.exc_info()[1])
|
print "*** Database Error: "+err[2]+"("+str(err[1])+"): "+str(sys.exc_info()[1])
|
||||||
|
|
||||||
def get_stats_from_hand( self, hand, type # type is "ring" or "tour"
|
def get_stats_from_hand( self, hand, type # type is "ring" or "tour"
|
||||||
, hud_params = {'aggregate_tour':False, 'aggregate_ring':False, 'hud_style':'A', 'hud_days':30, 'agg_bb_mult':100
|
, hud_params = {'aggregate_tour':False, 'aggregate_ring':False, 'hud_style':'A', 'hud_days':30, 'agg_bb_mult':100
|
||||||
|
@ -657,7 +657,7 @@ class Database:
|
||||||
except:
|
except:
|
||||||
ret = -1
|
ret = -1
|
||||||
err = traceback.extract_tb(sys.exc_info()[2])
|
err = traceback.extract_tb(sys.exc_info()[2])
|
||||||
print "***get_last_insert_id error: " + str(sys.exc_info()[1])
|
print "*** Database get_last_insert_id error: " + str(sys.exc_info()[1])
|
||||||
print "\n".join( [e[0]+':'+str(e[1])+" "+e[2] for e in err] )
|
print "\n".join( [e[0]+':'+str(e[1])+" "+e[2] for e in err] )
|
||||||
raise
|
raise
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in New Issue
Block a user