add debug
This commit is contained in:
parent
77b32ba360
commit
6c13395f7d
|
@ -47,8 +47,8 @@ func Listen(apihost, natshost string, debug bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if debug {
|
if debug {
|
||||||
fmt.Println("Api base url: ", api)
|
log.Println("Api base url: ", api)
|
||||||
fmt.Println("Nats connection url: ", natsurl)
|
log.Println("Nats connection url: ", natsurl)
|
||||||
}
|
}
|
||||||
|
|
||||||
rClient.SetHostURL(api)
|
rClient.SetHostURL(api)
|
||||||
|
@ -57,6 +57,9 @@ func Listen(apihost, natshost string, debug bool) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
if natsinfo.IsError() {
|
||||||
|
log.Fatalln(natsinfo.String())
|
||||||
|
}
|
||||||
|
|
||||||
opts := []nats.Option{
|
opts := []nats.Option{
|
||||||
nats.Name("TacticalRMM"),
|
nats.Name("TacticalRMM"),
|
||||||
|
|
Loading…
Reference in New Issue