mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
build: refactor makefile
This commit is contained in:
parent
b1e0d5b39f
commit
f81857acce
15 changed files with 3333 additions and 87 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue