From: Matthias Clasen Date: Sat, 5 Aug 2006 22:04:21 +0000 (+0000) Subject: Add some hints about making warnings fatal. (#348785, Matt Barnes) X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=9797823fe221f2c8a944164c26f59919fb174fdc;p=dana%2Fcg-glib.git Add some hints about making warnings fatal. (#348785, Matt Barnes) 2006-08-05 Matthias Clasen * glib/tmpl/messages.sgml: Add some hints about making warnings fatal. (#348785, Matt Barnes) --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index ab1142f4..fdcc9ae7 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +2006-08-05 Matthias Clasen + + * glib/tmpl/messages.sgml: Add some hints + about making warnings fatal. (#348785, Matt + Barnes) + 2006-07-22 Matthias Clasen * === Released 2.12.1 === diff --git a/docs/reference/glib/tmpl/messages.sgml b/docs/reference/glib/tmpl/messages.sgml index 5c918b1a..8e5889ff 100644 --- a/docs/reference/glib/tmpl/messages.sgml +++ b/docs/reference/glib/tmpl/messages.sgml @@ -138,6 +138,11 @@ A convenience function/macro to log a normal message. A convenience function/macro to log a warning message. + +You can make warnings fatal at runtime by setting the %G_DEBUG environment +variable (see Running GLib Applications). + + @...: format string, followed by parameters to insert into the format string (as with printf()) @...: @@ -166,6 +171,12 @@ warnings exit the program, then use g_critical() for fatal errors, for example. + +You can also make critical warnings fatal at runtime by setting +the %G_DEBUG environment variable (see +Running GLib Applications). + + @...: format string, followed by parameters to insert into the format string (as with printf()) @...: @@ -304,6 +315,12 @@ You can only set the levels defined by GLib to be fatal. %G_LOG_LEVEL_ERROR is always fatal. + +You can also make some message levels +fatal at runtime by setting the %G_DEBUG environment variable (see +Running GLib Applications). + + @fatal_mask: the mask containing bits set for each level of error which is to be fatal. @Returns: the old fatal mask.