mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	Write logs to STDOUT instead of STDERR
This commit is contained in:
		| @@ -1,6 +1,8 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## [Unreleased] | ||||
| ### Fix | ||||
| - Write logs to STDOUT instead of STDERR. | ||||
|  | ||||
| ## [3.3.1] - 2022-03-14 | ||||
| ### Fix | ||||
|   | ||||
| @@ -2,7 +2,6 @@ package logger | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"log" | ||||
| 	"os" | ||||
|  | ||||
| 	logrus "github.com/sirupsen/logrus" | ||||
| @@ -11,7 +10,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| func Init() error { | ||||
| 	log.SetOutput(os.Stdout) | ||||
| 	logrus.SetOutput(os.Stdout) | ||||
|  | ||||
| 	logFormat := "pretty" | ||||
| 	logLevel := "info" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user