From 7442ab6f6974176adc4212a3ae273f2d95fbeac7 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 31 Jan 2023 16:24:36 +0000 Subject: [PATCH] cmd/web: add a TSNET_VERBOSE escape hatch Signed-off-by: Xe Iaso --- cmd/web/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web/main.go b/cmd/web/main.go index 3291238..91c3c09 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -30,7 +30,7 @@ import ( var ( hostname = flag.String("hostname", envOr("TSNET_HOSTNAME", "paste"), "hostname to use on your tailnet, TSNET_HOSTNAME in the environment") dataDir = flag.String("data-location", dataLocation(), "where data is stored, defaults to DATA_DIR or ~/.config/tailscale/paste") - tsnetLogVerbose = flag.Bool("tsnet-verbose", false, "if set, have tsnet log verbosely to standard error") + tsnetLogVerbose = flag.Bool("tsnet-verbose", os.Getenv("TSNET_VERBOSE") != "", "if set, have tsnet log verbosely to standard error") //go:embed schema.sql sqlSchema string