From ba1beb08f4c774df55f3b431bf6c516384956949 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Sun, 5 Oct 2025 07:40:06 +0000 Subject: [PATCH] fix: log error for why cache couldn't be started (#1057) Example, `cache.port` set to `22`: ``` time="2025-10-04T09:27:42-06:00" level=error msg="Could not start the cache server, cache will be disabled: listen tcp :22: bind: permission denied" func="[setupCache]" file="[runner.go:126]" ``` - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1057): fix: log error for why cache couldn't be started Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1057 Reviewed-by: limiting-factor Co-authored-by: Mathieu Fenniak Co-committed-by: Mathieu Fenniak --- internal/app/run/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index 1bf32c78..82deea2b 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -123,7 +123,7 @@ func setupCache(cfg *config.Config, envs map[string]string) *cacheproxy.Handler log.StandardLogger().WithField("module", "cache_request"), ) if err != nil { - log.Error("Could not start the cache server, cache will be disabled") + log.Errorf("Could not start the cache server, cache will be disabled: %v", err) return nil }