Commit 39e61c74 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'fcatteau-master-patch-40187' into 'master'

Recommend log command line as error if fails

See merge request gitlab-org/gitlab!51809
parents 3c85291a 875b52b2
......@@ -260,6 +260,8 @@ When executing command lines, scanners should use the `debug` level to log the c
For instance, the [bundler-audit](https://gitlab.com/gitlab-org/security-products/analyzers/bundler-audit) scanner
uses the `debug` level to log the command line `bundle audit check --quiet`,
and what `bundle audit` writes to the standard output.
If the command line fails, then it should be logged with the `error` log level;
this makes it possible to debug the problem without having to change the log level to `debug` and rerun the scanning job.
#### common logutil package
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment