🐛 Added debug info, improved messages

This commit is contained in:
GeoffreyCoulaud
2023-06-19 23:33:18 +02:00
parent e57a2a74df
commit e97c08a42b
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
import logging
from pathlib import Path
from typing import Callable, Mapping, Iterable
from os import PathLike
@@ -73,7 +74,9 @@ class Location:
raise UnresolvableLocationError()
# Update the schema with the found candidate
shared.schema.set_string(self.schema_key, str(candidate))
value = str(candidate)
shared.schema.set_string(self.schema_key, value)
logging.debug("Resolved value for schema key %s: %s", self.schema_key, value)
def __getitem__(self, key: str):
"""Get the computed path from its key for the location"""