mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-02 04:46:50 +03:00
recommend FRIGATE_ROOT_SERVICES in the bandwidth stats warning
This commit is contained in:
@@ -198,8 +198,8 @@ def get_bandwidth_stats(config) -> dict[str, dict]:
|
|||||||
if not _bandwidth_warning_logged:
|
if not _bandwidth_warning_logged:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Network bandwidth stats require root (nethogs needs CAP_NET_ADMIN/CAP_NET_RAW) "
|
"Network bandwidth stats require root (nethogs needs CAP_NET_ADMIN/CAP_NET_RAW) "
|
||||||
"and are disabled; set FRIGATE_RUN_AS_ROOT=true or disable "
|
"and are disabled; set FRIGATE_ROOT_SERVICES=frigate (or FRIGATE_RUN_AS_ROOT=true) "
|
||||||
"telemetry.stats.network_bandwidth to silence this warning"
|
"or disable telemetry.stats.network_bandwidth to silence this warning"
|
||||||
)
|
)
|
||||||
_bandwidth_warning_logged = True
|
_bandwidth_warning_logged = True
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user