On 08/30/2016 08:52 PM, Justin Stephenson wrote:
On 08/05/2016 11:45 AM, Lukas Slebodnik wrote:
On (15/03/16 12:40), Pavel Březina wrote:
On 12/09/2015 01:16 PM, Jakub Hrozek wrote:
On Wed, Dec 09, 2015 at 01:07:10PM +0100, Pavel Březina wrote:
https://fedorahosted.org/sssd/ticket/2813
I wanted to split include/debug_levels.xml into more files so we don't
duplicate information, but I didn't figure out how to use
xi:include in
files that are already beeing included. I always managed to fail on
dtd
validation. Maybe someone more familiar with docbook may chime in.
If nesting doesn't work, wouldn't it be better to have a separate file
with just the levels so that services would include the
how-to-debug-services.xml and then levels?
Either way, the new file must be added to src/man/po/po4a.cfg
Here is the original patch with po4a.cfg altered.
From fb91d0bb1a84e77c5900aae0f8ca8b634f9baea7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]>
Date: Wed, 9 Dec 2015 13:04:35 +0100
Subject: [PATCH] sss_override: improve --debug description
Resolves:
https://fedorahosted.org/sssd/ticket/2813
---
Bump for review
+ 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.
+ </para>
+ <para>
ACK with one minor change.
s/kill the SSSD/kill SSSD/
Since it was just copy pasted text I'm sending this change in separate
commit and did it in both places.
From f302570a3ed610159fde1480191e94a555483fe0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]>
Date: Wed, 9 Dec 2015 13:04:35 +0100
Subject: [PATCH 1/2] sss_override: improve --debug description
Resolves:
https://fedorahosted.org/sssd/ticket/2813
---
src/man/include/debug_levels_tools.xml | 81 ++++++++++++++++++++++++++++++++++
src/man/po/po4a.cfg | 1 +
src/man/sss_override.8.xml | 2 +-
3 files changed, 83 insertions(+), 1 deletion(-)
create mode 100644 src/man/include/debug_levels_tools.xml
diff --git a/src/man/include/debug_levels_tools.xml b/src/man/include/debug_levels_tools.xml
new file mode 100644
index 0000000000000000000000000000000000000000..631e19d3905be6ecaf4f00d91038de2b4c981f84
--- /dev/null
+++ b/src/man/include/debug_levels_tools.xml
@@ -0,0 +1,81 @@
+<listitem>
+ <para>
+ 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).
+ </para>
+ <para>
+ Currently supported debug levels:
+ </para>
+ <para>
+ <emphasis>0</emphasis>,
+ <emphasis>0x0010</emphasis>:
+ Fatal failures. Anything that would prevent SSSD from starting up or
+ causes it to cease running.
+ </para>
+ <para>
+ <emphasis>1</emphasis>,
+ <emphasis>0x0020</emphasis>:
+ 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.
+ </para>
+ <para>
+ <emphasis>2</emphasis>,
+ <emphasis>0x0040</emphasis>: Serious failures. An error announcing
+ that a particular request or operation has failed.
+ </para>
+ <para>
+ <emphasis>3</emphasis>,
+ <emphasis>0x0080</emphasis>: Minor failures. These are the errors that
+ would percolate down to cause the operation failure of 2.
+ </para>
+ <para>
+ <emphasis>4</emphasis>,
+ <emphasis>0x0100</emphasis>: Configuration settings.
+ </para>
+ <para>
+ <emphasis>5</emphasis>,
+ <emphasis>0x0200</emphasis>: Function data.
+ </para>
+ <para>
+ <emphasis>6</emphasis>,
+ <emphasis>0x0400</emphasis>: Trace messages for operation functions.
+ </para>
+ <para>
+ <emphasis>7</emphasis>,
+ <emphasis>0x1000</emphasis>: Trace messages for internal control
+ functions.
+ </para>
+ <para>
+ <emphasis>8</emphasis>,
+ <emphasis>0x2000</emphasis>: Contents of function-internal variables
+ that may be interesting.
+ </para>
+ <para>
+ <emphasis>9</emphasis>,
+ <emphasis>0x4000</emphasis>: Extremely low-level tracing information.
+ </para>
+ <para>
+ To log required bitmask debug levels, simply add their numbers together
+ as shown in following examples:
+ </para>
+ <para>
+ <emphasis>Example</emphasis>: To log fatal failures, critical failures,
+ serious failures and function data use 0x0270.
+ </para>
+ <para>
+ <emphasis>Example</emphasis>: To log fatal failures, configuration
+ settings, function data, trace messages for internal control functions
+ use 0x1310.
+ </para>
+ <para>
+ <emphasis>Note</emphasis>: The bitmask format of debug levels was
+ introduced in 1.7.0.
+ </para>
+ <para>
+ <emphasis>Default</emphasis>: 0
+ </para>
+</listitem>
diff --git a/src/man/po/po4a.cfg b/src/man/po/po4a.cfg
index 2a51731fca4125654da383c9bf3ca7caf827a918..0dcc8022175babd9e15d8dc13a51733d1db4e1e1 100644
--- a/src/man/po/po4a.cfg
+++ b/src/man/po/po4a.cfg
@@ -35,6 +35,7 @@
[type:docbook] include/param_help.xml $lang:$(builddir)/$lang/include/param_help.xml opt:"-k 0"
[type:docbook] include/param_help_py.xml $lang:$(builddir)/$lang/include/param_help_py.xml opt:"-k 0"
[type:docbook] include/debug_levels.xml $lang:$(builddir)/$lang/include/debug_levels.xml opt:"-k 0"
+[type:docbook] include/debug_levels_tools.xml $lang:$(builddir)/$lang/include/debug_levels_tools.xml opt:"-k 0"
[type:docbook] include/experimental.xml $lang:$(builddir)/$lang/include/experimental.xml opt:"-k 0"
[type:docbook] include/local.xml $lang:$(builddir)/$lang/include/local.xml opt:"-k 0"
[type:docbook] include/seealso.xml $lang:$(builddir)/$lang/include/seealso.xml opt:"-k 0"
diff --git a/src/man/sss_override.8.xml b/src/man/sss_override.8.xml
index 349bba27cdced4379bffab72f816bca271eeb2dc..9f4d1c81ddbf27a08f7756e87d291e991b5a8ef9 100644
--- a/src/man/sss_override.8.xml
+++ b/src/man/sss_override.8.xml
@@ -268,7 +268,7 @@
<option>--debug</option>
<replaceable>LEVEL</replaceable>
</term>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/debug_levels.xml" />
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/debug_levels_tools.xml" />
</varlistentry>
</variablelist>
</refsect1>
--
2.1.0
From b4eb12fe673788789a3deb0c751008f12d233a92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <[email protected]>
Date: Wed, 31 Aug 2016 12:58:05 +0200
Subject: [PATCH 2/2] man page: fix language in debug level description
---
src/man/include/debug_levels.xml | 2 +-
src/man/include/debug_levels_tools.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/man/include/debug_levels.xml b/src/man/include/debug_levels.xml
index 0711cb5600b90b1c7dfc4a7728beff5b245f866a..93a8ec9016235bfee7fbeff336da1972246bf839 100644
--- a/src/man/include/debug_levels.xml
+++ b/src/man/include/debug_levels.xml
@@ -37,7 +37,7 @@
<para>
<emphasis>1</emphasis>,
<emphasis>0x0020</emphasis>:
- Critical failures. An error that doesn't kill the SSSD, but one that
+ Critical failures. An error that doesn't kill SSSD, but one that
indicates that at least one major feature is not going to work
properly.
</para>
diff --git a/src/man/include/debug_levels_tools.xml b/src/man/include/debug_levels_tools.xml
index 631e19d3905be6ecaf4f00d91038de2b4c981f84..fcc0c2d8b0d280cac0ffa0659fcfcce0e1e235f4 100644
--- a/src/man/include/debug_levels_tools.xml
+++ b/src/man/include/debug_levels_tools.xml
@@ -18,7 +18,7 @@
<para>
<emphasis>1</emphasis>,
<emphasis>0x0020</emphasis>:
- Critical failures. An error that doesn't kill the SSSD, but one that
+ Critical failures. An error that doesn't kill SSSD, but one that
indicates that at least one major feature is not going to work
properly.
</para>
--
2.1.0
_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]