From 75ebf9c1c8497befdb71f0b35125082038f9e424 Mon Sep 17 00:00:00 2001 From: Arsen Yeremin Date: Thu, 14 Nov 2024 09:02:35 -0800 Subject: [PATCH] disable warning message for gpu info --- .gitignore | 1 + pkg/system/gpu.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8e4b84b5..fb4cf037 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ bin/ vendor/ /data/ .DS_Store +/chain-data/* \ No newline at end of file diff --git a/pkg/system/gpu.go b/pkg/system/gpu.go index b35bd5f6..02eeb566 100644 --- a/pkg/system/gpu.go +++ b/pkg/system/gpu.go @@ -6,7 +6,7 @@ import ( ) func GetGPUInfo() []string { - gpu, err := ghw.GPU() + gpu, err := ghw.GPU(ghw.WithDisableWarnings()) if err != nil { log.Warn().Msgf("failed to get GPU info: %s", err) }