chore: removed unneeded todos;

feat: logger flushes buffer on creation
This commit is contained in:
2025-06-11 03:23:14 +03:00
parent ddd3e40575
commit 77b5134857
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ type Config struct {
var config *Config
// TODO: migrate logging to Zap
func LoadConfig() error {
// Load .env file

View File

@@ -11,7 +11,6 @@ func InitLogger() {
var err error
cfg := config.GetConfig()
// TODO: make this configurable
if cfg.Environment == "production" {
logger, err = zap.NewProduction()
} else {
@@ -20,6 +19,8 @@ func InitLogger() {
if err != nil {
panic(err)
}
defer logger.Sync()
}
func GetLogger() *zap.Logger {