chore(mochi): log websockets running info
This commit is contained in:
parent
4408cfc0a9
commit
46488fb3d5
|
|
@ -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 != "" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user