[arvados] updated: 2.7.0-6207-gc63ed8946d
git repository hosting
git at public.arvados.org
Mon Mar 18 14:45:19 UTC 2024
Summary of changes:
lib/mount/command.go | 4 ++++
1 file changed, 4 insertions(+)
via c63ed8946d66b425bd98ced05bf0b36ae3bd606c (commit)
from cb68d4e34688abd308d7adffc288c82a5deb6c85 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit c63ed8946d66b425bd98ced05bf0b36ae3bd606c
Author: Tom Clegg <tom at curii.com>
Date: Mon Mar 18 10:44:58 2024 -0400
21578: Add -debug alias for -log-level=debug.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
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() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list