From 1a2baa2c6adb6eef1880e31753477823269ac750 Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Mon, 22 Sep 2025 13:38:33 +0330 Subject: [PATCH] Removed unused logging --- Dockerfile | 1 + internal/auth/oauth2.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4d18d15..3770fe2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ COPY internal /app/internal/ RUN CGO_ENABLED=1 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go # Deploy the application binary into a lean image +# TODO: Move to alpine FROM gcr.io/distroless/base-debian12 AS build-release-stage WORKDIR / diff --git a/internal/auth/oauth2.go b/internal/auth/oauth2.go index 64c21f9..5ff2555 100644 --- a/internal/auth/oauth2.go +++ b/internal/auth/oauth2.go @@ -47,7 +47,7 @@ func (g *GiteaOAuth2Handler) GetGiteaUserEmailByCode(code string) (string, error } userInfoUrl := g.cfg.GiteaOauthInstance + "/login/oauth/userinfo" - g.logger.Info(userInfoUrl) + req, err := http.NewRequest("POST", userInfoUrl, nil) if err != nil { return "", err