fix logger
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
aovantsev
2025-10-09 07:37:41 +03:00
parent 97771b1023
commit a6eb3a2088
5 changed files with 35 additions and 41 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"database/sql"
"fmt"
"log"
"os"
_ "github.com/lib/pq"
@@ -41,7 +40,7 @@ func initDBWithURL(dbURL string) error {
return fmt.Errorf("failed to ping database: %w", err)
}
log.Println("✅ Database connection established successfully")
Logger.Println("✅ Database connection established successfully")
return nil
}
@@ -82,7 +81,7 @@ func CreateTables() error {
}
}
log.Println("✅ Database tables created successfully")
Logger.Println("✅ Database tables created successfully")
return nil
}