Skip to content

Commit

Permalink
Replace usage of deprecated logging.warn with logging.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Dec 12, 2024
1 parent d740222 commit a04e2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/everest/config_file_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ def _get_definitions(configuration, configpath):

for key, val in ERT_CONFIG_TEMPLATES.items():
if key in defs:
logging.warn(
logging.warning(
"Internal key {k} specified by user as {u}. "
"Overriding as {v}".format(k=key, u=defs[key], v=val)
)
defs[key] = f"<{val}>" # ert uses <GEO_ID> as format
else:
logging.warn("Empty configuration file provided!")
logging.warning("Empty configuration file provided!")

# If user didn't define a config path, we can insert it here.
defs["configpath"] = defs.get("configpath", configpath)
Expand Down

0 comments on commit a04e2df

Please sign in to comment.