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

@@ -4,7 +4,6 @@ import (
"crypto/rand"
"database/sql"
"fmt"
"log"
"net/http"
"os"
"strings"
@@ -23,7 +22,7 @@ func InitJWT() {
if secret == "" {
// Generate a random secret for development
secret = generateRandomSecret()
log.Println("Warning: Using generated JWT secret. Set JWT_SECRET environment variable for production.")
Logger.Println("Warning: Using generated JWT secret. Set JWT_SECRET environment variable for production.")
}
jwtSecret = []byte(secret)
}