add some logs

This commit is contained in:
Jonas Leder 2025-11-04 23:08:03 +01:00
commit 6e3bf0c2be

View file

@ -32,11 +32,13 @@ func main() {
}
if os.Getenv("GARBAGE_COLLECT_JOB") == "true" {
log.Log.Info("Starting in garbage collect mode")
garbagecollect.RunGarbageCollect()
os.Exit(0)
}
if os.Getenv("LOGGER_CLIENT") != "false" && os.Getenv("LOGGER_SERVER") != "true" {
log.Log.Info("Starting in client mode")
mqttclient.Init()
go messageworker.RunClient()
for {
@ -44,6 +46,7 @@ func main() {
}
}
if os.Getenv("LOGGER_SERVER") == "true" {
log.Log.Info("Starting in server mode")
server.Init()
go messageworker.RunServer()
server.Run()