fix: add debug log file locking, improve error logging, validate cloud API key
- Add portalocker file locking to debug_log() to prevent interleaved entries - Add exc_info=True to curator _call_llm error logging for stack traces - Add debug log message on JSON parse fallback in _parse_json_response - Warn when cloud is enabled but API key env var is not set Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -112,7 +112,14 @@ class Config:
|
||||
api_key_env=cloud_data.get("api_key_env", "OPENROUTER_API_KEY"),
|
||||
models=cloud_data.get("models", {})
|
||||
)
|
||||
|
||||
|
||||
if config.cloud.enabled and not config.cloud.api_key:
|
||||
import logging
|
||||
logging.getLogger(__name__).warning(
|
||||
"Cloud is enabled but API key env var '%s' is not set",
|
||||
config.cloud.api_key_env
|
||||
)
|
||||
|
||||
return config
|
||||
|
||||
config = Config.load()
|
||||
|
||||
Reference in New Issue
Block a user