mirror of
https://github.com/cadmium-im/zirconium-go.git
synced 2024-11-23 19:02:20 +00:00
Change logger in main.go
This commit is contained in:
parent
5e094d6c45
commit
eb948ed5bd
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user