fix(gateway): surface bootstrap failures to stderr instead of silently swallowing
This commit is contained in:
@ -499,21 +499,21 @@ try:
|
||||
if isinstance(_network_cfg, dict) and _network_cfg.get("force_ipv4"):
|
||||
apply_ipv4_preference(force=True)
|
||||
except Exception:
|
||||
pass
|
||||
print(" Warning: IPv4 preference application failed", file=sys.stderr)
|
||||
|
||||
# Validate config structure early — log warnings so gateway operators see problems
|
||||
try:
|
||||
from hermes_cli.config import print_config_warnings
|
||||
print_config_warnings()
|
||||
except Exception:
|
||||
pass
|
||||
print(" Warning: config validation failed", file=sys.stderr)
|
||||
|
||||
# Warn if user has deprecated MESSAGING_CWD / TERMINAL_CWD in .env
|
||||
try:
|
||||
from hermes_cli.config import warn_deprecated_cwd_env_vars
|
||||
warn_deprecated_cwd_env_vars()
|
||||
except Exception:
|
||||
pass
|
||||
print(" Warning: deprecation check failed", file=sys.stderr)
|
||||
|
||||
# Gateway runs in quiet mode - suppress debug output and use cwd directly (no temp dirs)
|
||||
os.environ["HERMES_QUIET"] = "1"
|
||||
|
||||
Reference in New Issue
Block a user