pass in debug

develop
parent 6af2852f27
commit 2a0eb79c41
  1. 6
      main.go

@ -131,7 +131,7 @@ func main() {
os.Exit(0)
}
rtClient, err := NewClient(conf.RT2.URL, "", conf.RT2.Token, conf.RT2.Insecure)
rtClient, err := NewClient(conf.RT2.URL, conf.RT2.User, conf.RT2.Token, conf.RT2.Insecure, *debug)
//rtClient, err := rt.NewClient(conf.RT.URL, conf.RT.User, conf.RT.Password, conf.RT.Insecure)
if err != nil {
@ -154,6 +154,10 @@ func main() {
for {
var x event.Notification
if *debug {
log.Printf("%+v", dec)
}
err := dec.Decode(&x)
if err != nil {
if *debug {

Loading…
Cancel
Save