Files
mirror-3x-ui/internal/web
Hamed 783e0c5438 feat(xray): report managed core lifecycle outcomes (#7264)
At the default log level an operator could see the Xray child PID change many times a day without learning which of those changes the panel caused, or why.

Write one xray_lifecycle line for every real start, stop, restart, hot apply, rejected config and unexpected child exit. It carries the old and new PID, the path that asked (manual, watchdog, client depletion, pending restart and its first trigger, ...), a fixed reason, the force flag, the duration, the hot-apply outcome and the previous child's exit code or signal. An unchanged config still emits nothing and restart policy is unchanged.

A hot apply the core refuses also logs the core's own error once, with the inbound tag or client it concerned, so a restart labelled hot_apply_failed can be traced to its cause.

Fixes #7260
2026-11-29 17:03:00 +03:30
..