mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	use logrus for gin's log output, fix nil pointer bug
This commit is contained in:
		@@ -63,6 +63,7 @@ func setupLogger(logger *logrus.Logger) error {
 | 
			
		||||
	} else {
 | 
			
		||||
		f := new(logrus.JSONFormatter)
 | 
			
		||||
		f.TimestampFormat = "2006-01-02 15:04:05"
 | 
			
		||||
		formatter = f
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	logger.SetFormatter(formatter)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user