mirror of
https://github.com/umputun/reproxy.git
synced 2024-09-11 08:55:25 +03:00
back to 1.15 compat
This commit is contained in:
parent
a835b66bf9
commit
af1cd3ae46
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/signal"
|
||||
"runtime"
|
||||
@ -194,7 +195,7 @@ func makeSSLConfig() (config proxy.SSLConfig, err error) {
|
||||
|
||||
func makeAccessLogWriter() (accessLog io.WriteCloser) {
|
||||
if !opts.Logger.Enabled {
|
||||
return nopWriteCloser{io.Discard}
|
||||
return nopWriteCloser{ioutil.Discard}
|
||||
}
|
||||
log.Printf("[INFO] logger enabled for %s", opts.Logger.FileName)
|
||||
return &lumberjack.Logger{
|
||||
|
Loading…
Reference in New Issue
Block a user