X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cb68d4e34688abd308d7adffc288c82a5deb6c85..62d3fea589acf744bb8ead4d42e11f794633704c:/lib/mount/command.go diff --git a/lib/mount/command.go b/lib/mount/command.go index 4cb744274b..eab9fd944c 100644 --- a/lib/mount/command.go +++ b/lib/mount/command.go @@ -50,6 +50,7 @@ func (c *mountCommand) RunCommand(prog string, args []string, stdin io.Reader, s experimental := flags.Bool("experimental", false, "acknowledge this is an experimental command, and should not be used in production (required)") cacheSizeStr := flags.String("cache-size", "0", "cache size as percent of home filesystem size (\"5%\") or size (\"10GiB\") or 0 for automatic") logLevel := flags.String("log-level", "info", "logging level (debug, info, ...)") + debug := flags.Bool("debug", false, "alias for -log-level=debug") pprof := flags.String("pprof", "", "serve Go profile data at `[addr]:port`") if ok, code := cmd.ParseFlags(flags, prog, args, "[FUSE mount options]", stderr); !ok { return code @@ -63,6 +64,9 @@ func (c *mountCommand) RunCommand(prog string, args []string, stdin io.Reader, s logger.WithError(err).Error("invalid argument for -log-level flag") return 2 } + if *debug { + lvl = logrus.DebugLevel + } logger.SetLevel(lvl) if *pprof != "" { go func() {