From 326a9159a60ab46199c6dffe519d63c6d9a165c9 Mon Sep 17 00:00:00 2001 From: Sohan Kunkerkar Date: Wed, 13 Apr 2022 11:08:05 -0400 Subject: [PATCH] internal/exec: switch log level for failed to fetch config Fixes https://github.com/coreos/fedora-coreos-tracker/issues/1159 if the error is ErrNeedNet, then we are logging it at Info level, and for other fetch failures, we're continue logging at Warning. --- internal/exec/engine.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/exec/engine.go b/internal/exec/engine.go index 2b8a47004..efe5dba24 100644 --- a/internal/exec/engine.go +++ b/internal/exec/engine.go @@ -236,6 +236,9 @@ func (e *Engine) acquireProviderConfig() (cfg types.Config, err error) { // cache config for use by other stages. cfg = emptyConfig e.Logger.Info("%v: provider config was empty, continuing with empty cache config", err) + } else if err == resource.ErrNeedNet { + e.Logger.Info("failed to fetch config: %s", err) + return } else if err != nil { e.Logger.Warning("failed to fetch config: %s", err) return