Skip to content

Commit

Permalink
Update warning log to use log_deprecation helper
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Mar 2, 2024
1 parent a69b375 commit d58ba53
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ovos_workshop/resource_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
from ovos_utils.bracket_expansion import expand_options
from ovos_utils import flatten_list
from ovos_utils.dialog import MustacheDialogRenderer, load_dialogs
from ovos_utils.log import LOG

from ovos_utils.log import LOG, log_deprecation

SkillResourceTypes = namedtuple(
"SkillResourceTypes",
Expand Down Expand Up @@ -121,9 +120,8 @@ def resolve_resource_file(res_name: str) -> Optional[str]:
Returns:
(str) path to resource or None if no resource found
"""
# TODO: Deprecate in 0.1.0
LOG.warning(f"This method has moved to `ovos_utils.file_utils` and will be"
f"removed in a future release.")
log_deprecation(f"This method has moved to `ovos_utils.file_utils`",
"0.1.0")
from ovos_utils.file_utils import resolve_resource_file
config = Configuration()
return resolve_resource_file(res_name, config=config)
Expand Down

0 comments on commit d58ba53

Please sign in to comment.