File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,9 +213,10 @@ def __init__(self):
213213
214214 def __call__ (self , record ):
215215 if len (self .components ) == 1 or len (self .components ) == 2 and self .components [0 ].replace ('-' , '_' ) == self .components [1 ]:
216- record .msg = f' { self .components [0 ]} : { record . msg } '
216+ record .name = self .components [0 ]
217217 elif self .components :
218- record .msg = f'[{ self .components [- 1 ]} ] { record .msg } '
218+ record .name = f'{ self .components [0 ]} [{ self .components [- 1 ]} ]'
219+ # record.msg = f'[{self.components[-1]}] {record.msg}'
219220 return True
220221
221222 @classmethod
@@ -321,8 +322,8 @@ def harness(name, *check_fns):
321322 - 'FAIL' if one of the functions has a falsy result
322323 - 'PASS' otherwise
323324 """
324- logger .debug (f'** { name } ' )
325325 _Filter .push (name )
326+ logger .debug (f'** begin testcase' )
326327
327328 messages = []
328329 try :
@@ -360,7 +361,7 @@ def run_sanity_checks(container):
360361
361362def main (argv ):
362363 # configure logging, disable verbose library logging
363- logging .basicConfig (format = '%(levelname)s: %(message)s' , level = logging .DEBUG )
364+ logging .basicConfig (format = '%(name)s: %( levelname)s: %(message)s' , level = logging .DEBUG )
364365 _Filter .install (logging .getLogger ())
365366 openstack .enable_logging (debug = False )
366367 cloud = None
You can’t perform that action at this time.
0 commit comments