Skip to content

Commit b2d779f

Browse files
tweak Toolkit logger messages a tiny bit for readability
1 parent f0be4ab commit b2d779f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bmt/toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def _format_warning_msg(cls, context: str, identifiers: Set[str]) -> str:
446446

447447
template: str = cls._warning_msg_templates[context]
448448
identifiers_str = ", ".join(identifiers)
449-
return f"{context}: {template.format(ids=identifiers_str)}"
449+
return f"{context} | {template.format(ids=identifiers_str)}"
450450

451451
# indexed list of identifiers captured in a given warning context
452452
_warning_id_catalog: Dict[str, Set[str]] = {}

tests/unit/test_toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_warnings(toolkit):
105105
toolkit.warning(context=context, identifier=identifier)
106106
warnings: str = toolkit.dump_warnings()
107107
assert warnings.endswith(
108-
"get_associations_subject_category: "
108+
"get_associations_subject_category | "
109109
"Could not find subject category elements:\n\t'HGNC:1234'\n"
110110
"within the current Biolink Model release?\n\n"
111111
)

0 commit comments

Comments
 (0)