You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/06/13 02:24:51 UTC

[GitHub] [incubator-devlake] warren830 commented on a diff in pull request #2169: [Improvement][Api EndPoint Debug Log]Added better debug log format display

warren830 commented on code in PR #2169:
URL: https://github.com/apache/incubator-devlake/pull/2169#discussion_r895282296


##########
api/api.go:
##########
@@ -45,7 +46,7 @@ func CreateApiService() {
 
 	//endpoint debug log
 	gin.DebugPrintRouteFunc = func(httpMethod, absolutePath, handlerName string, nuHandlers int) {
-		log.Printf("endpoint %v %v %v %v\n", httpMethod, absolutePath, handlerName, nuHandlers)
+		logger.Global.Printf("endpoint %v %v %v %v", httpMethod, absolutePath, handlerName, nuHandlers)

Review Comment:
   This is strange, why do we need to delete `\n`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org