From 37b03807fd4afd95149e23507928c04ad3fc9f08 Mon Sep 17 00:00:00 2001 From: Aaron Wagener Date: Sat, 13 Jan 2024 20:04:12 -0600 Subject: [PATCH] Core: Log the worlds still using the old options API (#2707) --- worlds/AutoWorld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index d4e463db..fdc50acc 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -79,8 +79,8 @@ class AutoWorldRegister(type): if "options_dataclass" not in dct and "option_definitions" in dct: # TODO - switch to deprecate after a version if __debug__: - from warnings import warn - warn("Assigning options through option_definitions is now deprecated. Use options_dataclass instead.") + logging.warning(f"{name} Assigned options through option_definitions which is now deprecated. " + "Please use options_dataclass instead.") dct["options_dataclass"] = make_dataclass(f"{name}Options", dct["option_definitions"].items(), bases=(PerGameCommonOptions,))