Commit 1454cbc1 authored by Julien Schröter's avatar Julien Schröter

Remove redundant router logging middlewares

gin.Default() already provides the default logging and recovery
middleware, thus the explicit inclusion is redundant. Those statements
cause duplicate logging and error reporting using the default output.
parent 1af159a3
Pipeline #1961 failed with stage
in 21 seconds
......@@ -201,8 +201,6 @@ func SetupRoutes(courseRepository course.CourseQuery, flashcardRepository flashc
}
//Middleware
router.Use(gin.Logger())
router.Use(gin.Recovery())
router.Use(setCORS())
// Do not load while testing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment