@@ -61,7 +61,7 @@ def _check_for_mulligan_hack(self, ts, tag, value):
6161 if tag == GameTag .MULLIGAN_STATE and value == Mulligan .DEALING :
6262 assert self .current_block
6363 if isinstance (self .current_block , packets .Block ):
64- logging .warning ("WARNING: Broken mulligan nesting. Working around..." )
64+ logging .warning ("[%s] Broken mulligan nesting. Working around..." , ts )
6565 self .block_end (ts )
6666
6767 def find_callback (self , method ):
@@ -122,7 +122,7 @@ def handle_data(self, ts, data):
122122 self ._packets .manager .register_controller (self ._entity_packet .entity , value )
123123 elif opcode .startswith ("Info[" ):
124124 if not self ._metadata_node :
125- logging .warning ("Metadata Info outside of META_DATA: %r" , data )
125+ logging .warning ("[%s] Metadata Info outside of META_DATA: %r" , ts , data )
126126 return
127127 sre = tokens .METADATA_INFO_RE .match (data )
128128 if not sre :
@@ -137,7 +137,7 @@ def handle_data(self, ts, data):
137137 entity , = sre .groups ()
138138 entity = self .parse_entity_or_player (entity )
139139 if not isinstance (self .current_block , packets .SubSpell ):
140- logging .warning ("SubSpell Source outside of SUB_SPELL: %r" , data )
140+ logging .warning ("[%s] SubSpell Source outside of SUB_SPELL: %r" , ts , data )
141141 return
142142 self .current_block .source = entity
143143 elif opcode .startswith ("Targets[" ):
@@ -147,7 +147,7 @@ def handle_data(self, ts, data):
147147 idx , entity = sre .groups ()
148148 entity = self .parse_entity_or_player (entity )
149149 if not isinstance (self .current_block , packets .SubSpell ):
150- logging .warning ("SubSpell Target outside of SUB_SPELL: %r" , data )
150+ logging .warning ("[%s] SubSpell Target outside of SUB_SPELL: %r" , ts , data )
151151 return
152152 self .current_block .targets .append (entity )
153153 else :
@@ -224,7 +224,7 @@ def handle_power(self, ts, opcode, data):
224224
225225 sre = regex .match (data )
226226 if not sre :
227- logging .warning ("Could not correctly parse %r" , data )
227+ logging .warning ("[%s] Could not correctly parse %r" , ts , data )
228228 return
229229 return callback (ts , * sre .groups ())
230230
0 commit comments