build: refactor makefile

This commit is contained in:
Oleg Lobanov 2021-12-20 23:16:35 +01:00
parent b1e0d5b39f
commit f81857acce
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
15 changed files with 3333 additions and 87 deletions

View file

@ -3,8 +3,8 @@ package cmd
import (
"crypto/tls"
"errors"
"io"
"io/fs"
"io/ioutil"
"log"
"net"
"net/http"
@ -299,7 +299,7 @@ func setupLog(logMethod string) {
case "stderr":
log.SetOutput(os.Stderr)
case "":
log.SetOutput(ioutil.Discard)
log.SetOutput(io.Discard)
default:
log.SetOutput(&lumberjack.Logger{
Filename: logMethod,