mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
chore: update logging
This commit is contained in:
10
main.go
10
main.go
@@ -14,22 +14,26 @@ import (
|
||||
var appCtx context.Context
|
||||
|
||||
func Main() {
|
||||
LoadConfig()
|
||||
logger.Debug().Msg("config loaded")
|
||||
|
||||
var cancel context.CancelFunc
|
||||
appCtx, cancel = context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
logger.Info().Msg("Starting JetKvm")
|
||||
logger.Info().Msg("starting JetKvm")
|
||||
|
||||
go runWatchdog()
|
||||
go confirmCurrentSystem()
|
||||
|
||||
http.DefaultClient.Timeout = 1 * time.Minute
|
||||
LoadConfig()
|
||||
logger.Debug().Msg("config loaded")
|
||||
|
||||
err := rootcerts.UpdateDefaultTransport()
|
||||
if err != nil {
|
||||
logger.Warn().Err(err).Msg("failed to load CA certs")
|
||||
}
|
||||
|
||||
initNetwork()
|
||||
|
||||
go TimeSyncLoop()
|
||||
|
||||
StartNativeCtrlSocketServer()
|
||||
|
||||
Reference in New Issue
Block a user