diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index beb328de..9402cd73 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -217,7 +217,7 @@ func createLogger(c *cli.Context, isTransport bool) (logger.Service, error) { loggerOpts := []logger.Option{} logPath := c.String("logfile") - if logPath != "" { + if logPath == "" { logPath = c.String(logDirectoryFlag) }