Document __cdist_loglevel values.

remotes/origin/prometheus-exporter-fixes
Darko Poljak 8 years ago
parent b0cbd8f5bd
commit 97332833bc
  1. 5
      docs/src/cdist-reference.rst.sh
  2. 8
      docs/src/cdist-type.rst

@ -198,6 +198,11 @@ Environment variables (for reading)
-----------------------------------
The following environment variables are exported by cdist:
__cdist_loglevel
Value of cdist log level. One of 60, 40, 30, 20, 15, 10 and 5 where
the meaning is OFF, ERROR, WARNING, INFO, VERBOSE, DEBUG and TRACE,
respectively.
Available for: initial manifest, type manifest, type gencode.
__explorer
Directory that contains all global explorers.
Available for: initial manifest, explorer, type explorer, shell.

@ -331,6 +331,14 @@ So when you generate a script with the following content, it will work:
fi
Log level in types
------------------
cdist log level can be accessed from __cdist_loglevel variable.
Value is one of 60, 40, 30, 20, 15, 10 and 5 where the meaning is
OFF, ERROR, WARNING, INFO, VERBOSE, DEBUG and TRACE, respectively.
It is available for initial manifest, type manifest and type gencode.
Hints for typewriters
----------------------
It must be assumed that the target is pretty dumb and thus does not have high

Loading…
Cancel
Save