Change logger in main.go

This commit is contained in:
ChronosX88 2020-02-10 14:55:22 +04:00
parent 5e094d6c45
commit eb948ed5bd

View File

@ -5,6 +5,7 @@ import (
"net/http" "net/http"
"github.com/ChronosX88/zirconium/internal" "github.com/ChronosX88/zirconium/internal"
"github.com/google/logger"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )
@ -24,8 +25,8 @@ func main() {
}).Methods("GET") }).Methods("GET")
router.HandleFunc("/ws", wsHandler) router.HandleFunc("/ws", wsHandler)
log.Println("Zirconium successfully started!") logger.Info("Zirconium successfully started!")
log.Fatal(http.ListenAndServe(":8844", router)) logger.Fatal(http.ListenAndServe(":8844", router))
} }
func wsHandler(w http.ResponseWriter, r *http.Request) { func wsHandler(w http.ResponseWriter, r *http.Request) {