Skip to content
Snippets Groups Projects
Commit f02ca44e authored by Sercan Yesildal's avatar Sercan Yesildal
Browse files

logger added to main

parent 42663077
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ func main() {
router.HandleFunc("/group/{id}", handler.DeleteGroup).Methods(http.MethodDelete)
router.HandleFunc("/group", handler.GetGroups).Methods(http.MethodGet)
router.HandleFunc("/group", handler.CreateGroup).Methods(http.MethodPost)
fmt.Printf("Server is listening on port :%v\n", port)
log.Infof("Server is listening on port :%v\n", port)
if err := http.ListenAndServe(fmt.Sprintf(":%v", port), router); err != nil {
log.Fatal(err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment