From 5e156b74dba8f017d3f41736aa255015bbad47a3 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Wed, 29 May 2024 17:43:26 +0800 Subject: [PATCH] update docker-compose --- docker-compose.yml | 2 -- server/internal/server/init.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 430ce0076..06a5c0dd8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: mysql: container_name: bbs-go-mysql diff --git a/server/internal/server/init.go b/server/internal/server/init.go index 7e11ad450..117476c49 100644 --- a/server/internal/server/init.go +++ b/server/internal/server/init.go @@ -14,6 +14,7 @@ import ( "strings" "time" + "github.com/mlogclub/simple/common/jsons" "github.com/mlogclub/simple/common/strs" "github.com/mlogclub/simple/sqls" "github.com/spf13/viper" @@ -53,6 +54,8 @@ func initConfig() { if err := viper.Unmarshal(&config.Instance); err != nil { panic(fmt.Errorf("fatal error config file: %w", err)) } + + slog.Info("Load config", slog.String("ENV", env), slog.String("config", jsons.ToJsonStr(config.Instance))) } func initDB() {