diff options
author | Arun Isaac | 2025-08-17 23:16:14 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-18 14:40:40 +0100 |
commit | 6649df00cfafa1150dcc81be651a7843d0d1f750 (patch) | |
tree | 340ebac9439d7b8a3af75053f68524e46737a884 /bin | |
parent | 41a9337ea81e418635cfe279a0ebe83307a0e822 (diff) | |
download | ravanan-6649df00cfafa1150dcc81be651a7843d0d1f750.tar.gz ravanan-6649df00cfafa1150dcc81be651a7843d0d1f750.tar.lz ravanan-6649df00cfafa1150dcc81be651a7843d0d1f750.zip |
Add --quiet flag to suppress all logging.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ravanan | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/ravanan b/bin/ravanan index ff92487..b45752f 100755 --- a/bin/ravanan +++ b/bin/ravanan @@ -98,6 +98,10 @@ exec guile --no-auto-compile -e main -s "$0" "$@" (cons (string->symbol arg) (assq-ref result 'traces)))) (user-error "Unknown trace subsystem ~a" arg))))) + (option (list "quiet") #f #f + (lambda (opt name arg result) + (acons 'quiet arg + result))) (option (list "help") #f #t (lambda (opt name arg result) (acons 'help #t result))) @@ -151,6 +155,8 @@ Debugging options: --trace=SUBSYSTEM enable tracing on subsystem; repeat to trace multiple subsystems (accepted values: slurm-api) + --quiet disable all logging and tracing; + overrides --log-level and --trace " program)) @@ -266,8 +272,11 @@ files that have the token in the @verbatim{SLURM_JWT=token} format." (user-error "Error loading manifest file ~a" file) (raise-exception c)))))) - (parameterize ((%log-level (assq-ref args 'log-level)) - (%traces (assq-ref args 'traces))) + (parameterize ((%log-level (and (not (assq-ref args 'quiet)) + (assq-ref args 'log-level))) + (%traces (if (assq-ref args 'quiet) + '() + (assq-ref args 'traces)))) (run-workflow (file-name-stem workflow-file) (and (assq 'guix-manifest-file args) (canonicalize-path |