Skip to content

Commit

Permalink
Fix up logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts committed Mar 29, 2024
1 parent dd116e7 commit 7e61175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion func_adl_xAOD/common/cpp_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ def define_enum(ns_name: str, enum_name: str, enum_values: List[str]) -> ENumInf
"""
ns = define_ns(ns_name)
if enum_name in ns.enums:
logging.info(f"Enum {enum_name} already defined in namespace {ns_name}")
logging.getLogger(__name__).info(
f"Enum {enum_name} already defined in namespace {ns_name}"
)
return ns.enums[enum_name]

e = ENumInfo(enum_name, enum_values, ns)
Expand Down

0 comments on commit 7e61175

Please sign in to comment.