From 46488fb3d5f8575318a52d788e4779d4e8572830 Mon Sep 17 00:00:00 2001 From: leandrofars Date: Thu, 18 Jan 2024 22:36:09 -0300 Subject: [PATCH] chore(mochi): log websockets running info --- backend/services/mochi/cmd/main.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/services/mochi/cmd/main.go b/backend/services/mochi/cmd/main.go index 931cb87..3383a5d 100644 --- a/backend/services/mochi/cmd/main.go +++ b/backend/services/mochi/cmd/main.go @@ -4,11 +4,6 @@ import ( "bytes" "crypto/tls" "flag" - rv8 "github.com/go-redis/redis/v8" - "github.com/mochi-co/mqtt/v2" - "github.com/mochi-co/mqtt/v2/hooks/storage/redis" - "github.com/mochi-co/mqtt/v2/packets" - "github.com/rs/zerolog" "io/ioutil" "log" "os" @@ -16,6 +11,12 @@ import ( "strings" "syscall" + rv8 "github.com/go-redis/redis/v8" + "github.com/mochi-co/mqtt/v2" + "github.com/mochi-co/mqtt/v2/hooks/storage/redis" + "github.com/mochi-co/mqtt/v2/packets" + "github.com/rs/zerolog" + "github.com/mochi-co/mqtt/v2/hooks/auth" "github.com/mochi-co/mqtt/v2/listeners" ) @@ -145,6 +146,7 @@ func main() { if err != nil { log.Fatal(err) } + log.Println("Websockets is running without TLS at port " + *wsAddr) } if *infoAddr != "" {