mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Quieter Integration Tests (#6513)
* Rename BaseLogger to WriterLogger to help the creation of other providers * Don't export ColorBytes and ResetBytes from ColoredValues * Make integration tests only print logs if they fail * check can color before coloring * I always forget about MSSQL * Oh and use LEVEL in sqlite.ini * Make the test logger log at info - as it means you see the router * Remove empty expected changes * Make the migrations quieter too * Don't display SQL on error - it can be looked at in the file logs if necessary * Fix skip when using onGiteaRun
This commit is contained in:
		@@ -20,7 +20,7 @@ import (
 | 
			
		||||
// FileLogger implements LoggerProvider.
 | 
			
		||||
// It writes messages by lines limit, file size limit, or time frequency.
 | 
			
		||||
type FileLogger struct {
 | 
			
		||||
	BaseLogger
 | 
			
		||||
	WriterLogger
 | 
			
		||||
	mw *MuxWriter
 | 
			
		||||
	// The opened file
 | 
			
		||||
	Filename string `json:"filename"`
 | 
			
		||||
@@ -106,7 +106,7 @@ func (log *FileLogger) Init(config string) error {
 | 
			
		||||
		return errors.New("config must have filename")
 | 
			
		||||
	}
 | 
			
		||||
	// set MuxWriter as Logger's io.Writer
 | 
			
		||||
	log.createLogger(log.mw)
 | 
			
		||||
	log.NewWriterLogger(log.mw)
 | 
			
		||||
	return log.StartLogger()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user