chore(mochi): log websockets running info
This commit is contained in:
parent
4408cfc0a9
commit
46488fb3d5
|
|
@ -4,11 +4,6 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"flag"
|
"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"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -16,6 +11,12 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"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/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/v2/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
@ -145,6 +146,7 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
log.Println("Websockets is running without TLS at port " + *wsAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if *infoAddr != "" {
|
if *infoAddr != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user