alter primary keys to uuids and adjust the membership system

This commit is contained in:
Fran Jurmanović
2025-06-30 22:50:52 +02:00
parent caba5bae70
commit c17e7742ee
53 changed files with 12641 additions and 805 deletions

View File

@@ -14,19 +14,29 @@ import (
)
func main() {
// Initialize logger
logger, err := logging.Initialize()
if err != nil {
fmt.Printf("Failed to initialize logger: %v\n", err)
// Initialize new logging system
if err := logging.InitializeLogging(); err != nil {
fmt.Printf("Failed to initialize logging system: %v\n", err)
os.Exit(1)
}
defer logger.Close()
// Get legacy logger for backward compatibility
logger := logging.GetLegacyLogger()
if logger != nil {
defer logger.Close()
}
// Set up panic recovery
defer logging.RecoverAndLog()
// Log application startup
logging.InfoStartup("APPLICATION", "ACC Server Manager starting up")
di := dig.New()
cache.Start(di)
db.Start(di)
server.Start(di)
// Log successful startup
logging.InfoStartup("APPLICATION", "ACC Server Manager started successfully")
}