mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-14 04:02:26 +00:00
fix(gateway): surface bootstrap failures to stderr instead of silently swallowing
This commit is contained in:
parent
5909526a06
commit
926402dd13
1 changed files with 3 additions and 3 deletions
|
|
@ -499,21 +499,21 @@ try:
|
||||||
if isinstance(_network_cfg, dict) and _network_cfg.get("force_ipv4"):
|
if isinstance(_network_cfg, dict) and _network_cfg.get("force_ipv4"):
|
||||||
apply_ipv4_preference(force=True)
|
apply_ipv4_preference(force=True)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
print(" Warning: IPv4 preference application failed", file=sys.stderr)
|
||||||
|
|
||||||
# Validate config structure early — log warnings so gateway operators see problems
|
# Validate config structure early — log warnings so gateway operators see problems
|
||||||
try:
|
try:
|
||||||
from hermes_cli.config import print_config_warnings
|
from hermes_cli.config import print_config_warnings
|
||||||
print_config_warnings()
|
print_config_warnings()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
print(" Warning: config validation failed", file=sys.stderr)
|
||||||
|
|
||||||
# Warn if user has deprecated MESSAGING_CWD / TERMINAL_CWD in .env
|
# Warn if user has deprecated MESSAGING_CWD / TERMINAL_CWD in .env
|
||||||
try:
|
try:
|
||||||
from hermes_cli.config import warn_deprecated_cwd_env_vars
|
from hermes_cli.config import warn_deprecated_cwd_env_vars
|
||||||
warn_deprecated_cwd_env_vars()
|
warn_deprecated_cwd_env_vars()
|
||||||
except Exception:
|
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)
|
# Gateway runs in quiet mode - suppress debug output and use cwd directly (no temp dirs)
|
||||||
os.environ["HERMES_QUIET"] = "1"
|
os.environ["HERMES_QUIET"] = "1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue