From 61243ad34bb005a2ca698c05d2b7aa0c59e28c6e Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 8 Jan 2023 13:00:46 -0700 Subject: [PATCH] Make error messages for gpu stats more clear (#4962) * Make error messages for gpu stats more clear * Make error messages for gpu stats more clear --- frigate/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/util.py b/frigate/util.py index d8cdef0d9..6fe00b593 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -780,7 +780,7 @@ def get_amd_gpu_stats() -> dict[str, str]: ) if p.returncode != 0: - logger.error(p.stderr) + logger.error(f"Unable to poll radeon GPU stats: {p.stderr}") return None else: usages = p.stdout.split(",") @@ -816,7 +816,7 @@ def get_intel_gpu_stats() -> dict[str, str]: # timeout has a non-zero returncode when timeout is reached if p.returncode != 124: - logger.error(p.stderr) + logger.error(f"Unable to poll intel GPU stats: {p.stderr}") return None else: reading = "".join(p.stdout.split()) @@ -866,7 +866,7 @@ def get_nvidia_gpu_stats() -> dict[str, str]: ) if p.returncode != 0: - logger.error(p.stderr) + logger.error(f"Unable to poll nvidia GPU stats: {p.stderr}") return None else: usages = p.stdout.split("\n")[1].strip().split(",")