From 91b54bef29ca9e7d3394fad1e44fa4b6f795035c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 7 Nov 2022 23:09:41 +0100 Subject: [PATCH] add newline --- server/upstream/upstream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/upstream/upstream.go b/server/upstream/upstream.go index 0e27727..61c90de 100644 --- a/server/upstream/upstream.go +++ b/server/upstream/upstream.go @@ -85,6 +85,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client, } else { res, err = giteaClient.ServeRawContent(o.generateUriClientArgs()) } + log.Debug().Msg("Aquisting") // Handle errors @@ -158,6 +159,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client, ctx.Redirect(o.redirectIfExists, fasthttp.StatusTemporaryRedirect) return true } + log.Debug().Msg("Handling error") // Set the MIME type @@ -200,6 +202,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client, html.ReturnErrorPage(ctx, fasthttp.StatusInternalServerError) return true } + log.Debug().Msg("Sending response") if res != nil && res.Header.ContentLength() <= fileCacheSizeLimit && ctx.Err() == nil {