Draft: big refactor

This commit is contained in:
2025-09-16 16:03:27 +08:00
parent f527230f1e
commit c4f2b0af25
42 changed files with 684 additions and 215 deletions

View File

@@ -14,7 +14,7 @@ func ReadConfig(ctx context.Context) {
viper.AddConfigPath(".")
if err := viper.ReadInConfig(); err != nil {
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
tracing.Logger.Ctx(ctx).
tracing.Logger.
Panic("failed to read config file",
zap.Error(err))
panic(err)