mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Backport #34579 by wxiaoguang See the comments Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -103,7 +103,10 @@ func logPrinter(logger log.Logger) func(trigger Event, record *requestRecord) { | ||||
| 			status = v.WrittenStatus() | ||||
| 		} | ||||
| 		logf := logInfo | ||||
| 		if strings.HasPrefix(req.RequestURI, "/assets/") { | ||||
| 		// lower the log level for some specific requests, in most cases these logs are not useful | ||||
| 		if strings.HasPrefix(req.RequestURI, "/assets/") /* static assets */ || | ||||
| 			req.RequestURI == "/user/events" /* Server-Sent Events (SSE) handler */ || | ||||
| 			req.RequestURI == "/api/actions/runner.v1.RunnerService/FetchTask" /* Actions Runner polling */ { | ||||
| 			logf = logTrace | ||||
| 		} | ||||
| 		message := completedMessage | ||||
|   | ||||
		Reference in New Issue
	
	Block a user