Skip to content

Commit c55e50c

Browse files
committed
Use channel name
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent 638ff8b commit c55e50c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Tests/iaas/openstack_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

361362
def 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

0 commit comments

Comments
 (0)