Merge branch 'log-fatal' into 'master'

gmessages: Document that using a custom log writer basically disables fatal handling

See merge request GNOME/glib!1678
This commit is contained in:
Philip Withnall 2020-10-06 10:23:24 +00:00
commit 78e1431816

View File

@ -2606,6 +2606,10 @@ log_is_old_api (const GLogField *fields,
* messages unless their log domain (or `all`) is listed in the space-separated
* `G_MESSAGES_DEBUG` environment variable.
*
* g_log_writer_default() uses the mask set by g_log_set_always_fatal() to
* determine which messages are fatal. When using a custom writer func instead it is
* up to the writer function to determine which log messages are fatal.
*
* Returns: %G_LOG_WRITER_HANDLED on success, %G_LOG_WRITER_UNHANDLED otherwise
* Since: 2.50
*/