From bf221718ca20545a1bb62577c31b1e1ced7fc7b9 Mon Sep 17 00:00:00 2001 From: Stefano Cappa Date: Tue, 20 Aug 2024 17:48:19 +0200 Subject: [PATCH] fix: add missing env variable log Signed-off-by: Stefano Cappa --- Dockerfile | 2 +- initialization/environment.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ace7d2..ccff9ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.23-alpine as builder +FROM golang:1.23-alpine AS builder RUN apk update && apk add --no-cache \ protoc \ make gcc musl-dev diff --git a/initialization/environment.go b/initialization/environment.go index 6a8bd05..d9e5fb9 100644 --- a/initialization/environment.go +++ b/initialization/environment.go @@ -41,6 +41,7 @@ func printEnv(logger *zap.SugaredLogger) { logger.Info("MONGODB_URL = " + os.Getenv("MONGODB_URL")) logger.Info("HTTP_SERVER = " + os.Getenv("HTTP_SERVER")) logger.Info("HTTP_PORT = " + os.Getenv("HTTP_PORT")) + logger.Info("OAUTH_CALLBACK = " + os.Getenv("OAUTH_CALLBACK")) logger.Info("HTTP_CORS = " + os.Getenv("HTTP_CORS")) logger.Info("HTTP_SENSOR_SERVER = " + os.Getenv("HTTP_SENSOR_SERVER")) logger.Info("HTTP_SENSOR_PORT = " + os.Getenv("HTTP_SENSOR_PORT"))