From 97332833bc2652c71b71d91f4666343401a1458e Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 6 Sep 2017 21:47:53 +0200 Subject: [PATCH] Document __cdist_loglevel values. --- docs/src/cdist-reference.rst.sh | 5 +++++ docs/src/cdist-type.rst | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/src/cdist-reference.rst.sh b/docs/src/cdist-reference.rst.sh index 89820358..cb717c4a 100755 --- a/docs/src/cdist-reference.rst.sh +++ b/docs/src/cdist-reference.rst.sh @@ -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. diff --git a/docs/src/cdist-type.rst b/docs/src/cdist-type.rst index bfe3c35d..8c8605d1 100644 --- a/docs/src/cdist-type.rst +++ b/docs/src/cdist-type.rst @@ -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