Skip to content

Commit

Permalink
🔊 Log a warning if resource not found, instead of passing
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Nov 11, 2024
1 parent 23e7f53 commit 2e07322
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acapy_agent/config/logging/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
from .utils import add_trace_level


LOGGER = logging.getLogger(__name__)

# Add TRACE level to logging before any configuration
add_trace_level()

Expand Down Expand Up @@ -62,7 +64,8 @@ def load_resource(path: str, encoding: Optional[str] = None):
return io.TextIOWrapper(bstream, encoding=encoding)
return bstream
except IOError:
pass
LOGGER.warning("Resource not found: %s", path)
return None


def dictConfig(config, new_file_path=None):
Expand Down

0 comments on commit 2e07322

Please sign in to comment.