util: Use g_warning() when warning about log files

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4005>
This commit is contained in:
Jonas Ådahl 2024-12-31 00:12:30 +01:00 committed by Marge Bot
parent b264497e4f
commit 654df2b795

View File

@ -102,7 +102,7 @@ ensure_logfile (void)
if (err != NULL)
{
meta_warning ("Failed to open debug log: %s",
g_warning ("Failed to open debug log: %s",
err->message);
g_error_free (err);
return;
@ -112,7 +112,7 @@ ensure_logfile (void)
if (logfile == NULL)
{
meta_warning ("Failed to fdopen() log file %s: %s",
g_warning ("Failed to fdopen() log file %s: %s",
filename, strerror (errno));
close (fd);
}