mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: use correct devnull device on windows for proxy logs (#1803)
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ func New(ctx context.Context, coderurl *url.URL) (string, <-chan error, error) {
|
|||||||
cfg.ServerPort = 7000
|
cfg.ServerPort = 7000
|
||||||
|
|
||||||
// Ignore all logs from frp.
|
// Ignore all logs from frp.
|
||||||
frplog.InitLog("file", "/dev/null", "error", 0, false)
|
frplog.InitLog("file", os.DevNull, "error", -1, false)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
id = uuid.NewString()
|
id = uuid.NewString()
|
||||||
|
Reference in New Issue
Block a user