remove log
This commit is contained in:
@@ -31,21 +31,10 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("before .Close")
|
|
||||||
|
|
||||||
// Wait here until CTRL-C or other term signal is received.
|
// Wait here until CTRL-C or other term signal is received.
|
||||||
fmt.Println("Bot is now running. Press CTRL-C to exit.")
|
|
||||||
sc := make(chan os.Signal, 1)
|
sc := make(chan os.Signal, 1)
|
||||||
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
||||||
<-sc
|
<-sc
|
||||||
|
|
||||||
dgclient.Close()
|
dgclient.Close()
|
||||||
|
|
||||||
fmt.Println("after .Close")
|
|
||||||
// addr := fmt.Sprintf(":%s", env.Port)
|
|
||||||
// fmt.Println("starting server at", addr)
|
|
||||||
//
|
|
||||||
// if err := http.ListenAndServe(addr); err != nil {
|
|
||||||
// panic(err)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user