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

This commit is contained in:
aovantsev
2025-10-10 19:26:15 +03:00
parent b2fe26fe96
commit ef352736f0

View File

@@ -63,6 +63,7 @@ func loadEnvironmentFiles() {
// Get environment first (from system env or default)
env := getEnvironmentFromSystem()
// Use standard log for early initialization (before logger is ready)
log.Printf("🔍 Detected environment: %s", env)
// Define file loading order (later files override earlier ones)
@@ -133,7 +134,7 @@ func getGinMode(env Environment) string {
func getLogLevel(env Environment) string {
switch env {
case Production:
return "warn"
return "info" // Changed from "warn" to "info" to capture more logs
case Staging:
return "info"
case Development:
@@ -176,7 +177,7 @@ func getRequiredEnv(key string) string {
// logConfig logs configuration (without sensitive data)
func logConfig(config *Config) {
// Environment banner
// Use standard log for configuration banner since logger might not be initialized yet
log.Printf("")
log.Printf("╔══════════════════════════════════════════════════════════════╗")
log.Printf("║ COUNTER APPLICATION ║")