fix: use correct devnull device on windows for proxy logs (#1803)

This commit is contained in:
Colin Adler
2022-05-26 15:21:36 -05:00
committed by GitHub
parent 7467bfe4ed
commit d135f85f69

View File

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net/url"
"os"
"strconv"
"strings"
@ -33,7 +34,7 @@ func New(ctx context.Context, coderurl *url.URL) (string, <-chan error, error) {
cfg.ServerPort = 7000
// Ignore all logs from frp.
frplog.InitLog("file", "/dev/null", "error", 0, false)
frplog.InitLog("file", os.DevNull, "error", -1, false)
var (
id = uuid.NewString()