Skip to content

gtk: Capture new-style GLib structured logging messages under d-i

Simon McVittie requested to merge smcv/cdebconf:glib-structured-logging into master

GLib 2.50 replaced the non-machine-readable, text-based logging that uses g_log_set_default_handler() with a more structured logging framework inspired by systemd-journal. Each library can either use the structured or unstructured logging framework; unstructured messages are received by structured log handlers, but the opposite is not true.

For the purposes of this debconf frontend, the interesting libraries include GLib and Pango (which use structured logging) and GTK 2 (which does not). As a result, GLib and Pango debug messages did not go to the syslog in d-i; now they do.

Closes: #988589


This is helpful when trying to debug #987587 by adding more g_debug() to GTK 2 and Pango.

Edited by Simon McVittie

Merge request reports

Loading