mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-14 05:33:18 +08:00
feat: unify runtime logging (rotating files, log root, scripts, desktop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
86d4bad107
commit
1490bd5f24
25 changed files with 541 additions and 53 deletions
|
|
@ -650,6 +650,11 @@ def _run_ws_forever(*, sender: WeComClient, deliver_outbound: bool, use_response
|
|||
|
||||
|
||||
def run_forever() -> int:
|
||||
from svc.config.bootstrap_env import load_system_env
|
||||
from svc.observability.logging_setup import configure_oclaw_logging
|
||||
|
||||
load_system_env()
|
||||
configure_oclaw_logging(service_name="wecom-longconn", include_uvicorn_formatters=False)
|
||||
store = get_assistant_store()
|
||||
sender = WeComClient(store)
|
||||
lock = _SingleInstanceLock(Path(db_path()).resolve().parent / "locks" / "wecom_longconn.lock")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue