Skip to content

Commit d135f85

Browse files
authored
fix: use correct devnull device on windows for proxy logs (#1803)
1 parent 7467bfe commit d135f85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/devtunnel/tunnel.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"net/url"
7+
"os"
78
"strconv"
89
"strings"
910

@@ -33,7 +34,7 @@ func New(ctx context.Context, coderurl *url.URL) (string, <-chan error, error) {
3334
cfg.ServerPort = 7000
3435

3536
// Ignore all logs from frp.
36-
frplog.InitLog("file", "/dev/null", "error", 0, false)
37+
frplog.InitLog("file", os.DevNull, "error", -1, false)
3738

3839
var (
3940
id = uuid.NewString()

0 commit comments

Comments
 (0)