fix: More verbosity in stderr errors
This commit is contained in:
parent
6efd3457ce
commit
597107d2b5
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class Settings(BaseSettings):
|
||||||
data = yaml.safe_load(fh) or {}
|
data = yaml.safe_load(fh) or {}
|
||||||
else:
|
else:
|
||||||
import sys
|
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)
|
return cls(**data)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class HandlerFactory:
|
||||||
def file_handler(prefix: str = ''):
|
def file_handler(prefix: str = ''):
|
||||||
if not file_path:
|
if not file_path:
|
||||||
import sys
|
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
|
return None
|
||||||
file_path.parent.mkdir(parents=True, exist_ok=True)
|
file_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
file_path.touch(exist_ok=True)
|
file_path.touch(exist_ok=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue