fix: refine logging
This commit was merged in pull request #293.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"log"
|
||||
"log/slog"
|
||||
"me-fit/log"
|
||||
)
|
||||
|
||||
type ServerSettings struct {
|
||||
@@ -78,8 +77,8 @@ func NewServerSettingsFromEnv(env func(string) string) *ServerSettings {
|
||||
log.Fatal("SMTP and Prometheus must be enabled in production")
|
||||
}
|
||||
|
||||
slog.Info("BASE_URL is " + settings.BaseUrl)
|
||||
slog.Info("ENVIRONMENT is " + settings.Environment)
|
||||
log.Info("BASE_URL is %v", settings.BaseUrl)
|
||||
log.Info("ENVIRONMENT is %v", settings.Environment)
|
||||
|
||||
return settings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user