Browse Source

Log to stdout

DarthSim 6 years ago
parent
commit
939a4c18c3
2 changed files with 4 additions and 0 deletions
  1. 1 0
      CHANGELOG.md
  2. 3 0
      main.go

+ 1 - 0
CHANGELOG.md

@@ -5,6 +5,7 @@
 - Better handling if non-sRGB images;
 - `SO_REUSEPORT` socker option support. Can be enabled with `IMGPROXY_SO_REUSEPORT`;
 - `dpr` option always changes the resulting size even if it leads to enlarge and `enlarge` is falsey;
+- Log to STDOUT
 
 ## v2.3.0
 

+ 3 - 0
main.go

@@ -1,6 +1,7 @@
 package main
 
 import (
+	"log"
 	"os"
 	"os/signal"
 	"runtime"
@@ -14,6 +15,8 @@ const version = "2.3.0"
 type ctxKey string
 
 func initialize() {
+	log.SetOutput(os.Stdout)
+
 	initSyslog()
 	configure()
 	initNewrelic()