From 24f62f9f5b8b4e17ef0f229576d014d7729a644b Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 7 Oct 2013 09:03:32 -0400 Subject: MAN: Clarify debug level documentation Originally, we planned to deprecate the decimal values for the debug levels, but that has proven to be too difficult for most users to understand. Instead, we will document both the simple decimal and complex bitmask values and recommend the use of the decimal values. --- src/man/include/debug_levels.xml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'src/man') diff --git a/src/man/include/debug_levels.xml b/src/man/include/debug_levels.xml index ce5064051..14e666c75 100644 --- a/src/man/include/debug_levels.xml +++ b/src/man/include/debug_levels.xml @@ -1,49 +1,61 @@ - Bit mask that indicates which debug levels will be visible. 0x0010 is the default value as well - as the lowest allowed value, 0xFFF0 is the most verbose mode. This setting - overrides the settings from config file. + SSSD supports two representations for specifying the debug level. The + simplest is to specify a decimal value from 0-9, which represents + enabling that level and all lower-level debug messages. The more + comprehensive option is to specify a hexadecimal bitmask to enable or + disable specific levels (such as if you wish to suppress a level). Currently supported debug levels: + 0, 0x0010: Fatal failures. Anything that would prevent SSSD from starting up or causes it to cease running. + 1, 0x0020: Critical failures. An error that doesn't kill the SSSD, but one that indicates that at least one major feature is not going to work properly. + 2, 0x0040: Serious failures. An error announcing that a particular request or operation has failed. + 3, 0x0080: Minor failures. These are the errors that would percolate down to cause the operation failure of 2. + 4, 0x0100: Configuration settings. + 5, 0x0200: Function data. + 6, 0x0400: Trace messages for operation functions. + 7, 0x1000: Trace messages for internal control functions. + 8, 0x2000: Contents of function-internal variables that may be interesting. + 9, 0x4000: Extremely low-level tracing information. - To log required debug levels, simply add their numbers together as shown in following examples: + To log required bitmask debug levels, simply add their numbers together as shown in following examples: Example: To log fatal failures, critical failures, @@ -54,7 +66,9 @@ trace messages for internal control functions use 0x1310. - Note: This is new format of debug levels introduced in 1.7.0. - Older format (numbers from 0-10) is compatible but deprecated. + Note: The bitmask format of debug levels was introduced in 1.7.0. + + + Default: 0 -- cgit