From 25bed3565f037dac1c0896acf5e04bade46f548f Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Wed, 22 Nov 2023 22:27:53 +0300 Subject: [PATCH] remove useless log handler --- internal/api/web/middleware/log.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/api/web/middleware/log.go b/internal/api/web/middleware/log.go index d03544d..3062e24 100644 --- a/internal/api/web/middleware/log.go +++ b/internal/api/web/middleware/log.go @@ -13,13 +13,6 @@ import ( func SetupLogger(zapLog *zap.SugaredLogger) gin.HandlerFunc { gin.DefaultWriter = log.AsWriter(zapLog, zap.DebugLevel) gin.DefaultErrorWriter = log.AsWriter(zapLog, zap.ErrorLevel) - gin.DebugPrintRouteFunc = func(httpMethod, absolutePath, handlerName string, nuHandlers int) { - zapLog.Debugw("route", - "method", httpMethod, - "path", absolutePath, - "handler", handlerName, - "handlerNum", nuHandlers) - } return func(c *gin.Context) { start := time.Now()