fix: More verbosity in stderr errors

This commit is contained in:
Piotr Dec 2025-12-04 00:09:05 +01:00
parent 6efd3457ce
commit 597107d2b5
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class Settings(BaseSettings):
data = yaml.safe_load(fh) or {}
else:
import sys
sys.stderr.write(f"Warning: Config file {p} not found.\n")
sys.stderr.write(f"Warning: Config file {p.absolute()} not found.\n")
return cls(**data)

View file

@ -69,7 +69,7 @@ class HandlerFactory:
def file_handler(prefix: str = ''):
if not file_path:
import sys
sys.stderr.write("No file path specified, skipping file logging...")
sys.stderr.write("No file path specified, skipping file logging...\n")
return None
file_path.parent.mkdir(parents=True, exist_ok=True)
file_path.touch(exist_ok=True)