[glib/mwleeds/log-set-enabled-docs-2] gmessages: Clarify g_log_set_debug_enabled() behavior




commit 3a22c26e5c3e59ca1b7814f6a45e5d16f50db5e0
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Wed Mar 2 18:58:11 2022 -0800

    gmessages: Clarify g_log_set_debug_enabled() behavior
    
    Fixes #2609

 glib/gmessages.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index e00b9a45d..9480384cf 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -2893,8 +2893,8 @@ _g_log_writer_fallback (GLogLevelFlags   log_level,
  * other logging functions; it should only be used from %GLogWriterFunc
  * implementations.
  *
- * Note also that the value of this does not depend on `G_MESSAGES_DEBUG`, as
- * it is domain-dependent.
+ * Note also that the value of this does not depend on `G_MESSAGES_DEBUG`; see
+ * the docs for g_log_set_debug_enabled().
  *
  * Returns: %TRUE if debug output is enabled, %FALSE otherwise
  *
@@ -2910,9 +2910,9 @@ g_log_get_debug_enabled (void)
  * g_log_set_debug_enabled:
  * @enabled: %TRUE to enable debug output, %FALSE otherwise
  *
- * Enable or disable debug output from the GLib logging system. This
- * value interacts disjunctively with `G_MESSAGES_DEBUG` — if either of them
- * would allow a debug message to be outputted, it will be.
+ * Enable or disable debug output from the GLib logging system for all domains.
+ * This value interacts disjunctively with `G_MESSAGES_DEBUG` — if either of
+ * them would allow a debug message to be outputted, it will be.
  *
  * Note that this should not be used from within library code to enable debug
  * output — it is intended for external use.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]