From acb4d24c45a61ebcc43bc786bde262eb173955c3 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 26 Oct 2022 16:18:35 +0200 Subject: [PATCH] Change loglevel for context cancellation to DEBUG --- internal/nomad/api_querier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nomad/api_querier.go b/internal/nomad/api_querier.go index 1af77c9..78c9827 100644 --- a/internal/nomad/api_querier.go +++ b/internal/nomad/api_querier.go @@ -107,7 +107,7 @@ func (nc *nomadAPIClient) Execute(runnerID string, log.WithField("runnerID", runnerID).WithError(err).Info("The exit code could not be received.") return 0, nil case errors.Is(err, context.Canceled): - log.WithField("runnerID", runnerID).Infof("Execution canceled by context") + log.WithField("runnerID", runnerID).Debug("Execution canceled by context") return 0, nil default: return 1, fmt.Errorf("error executing command in allocation: %w", err)