misc: Replace some of g_warning usages with g_debug

To avoid spamming the user's journald
This commit is contained in:
Bilal Elmoussaoui 2023-06-13 16:51:08 +02:00
parent c28a6f85e2
commit 10fa9edd8f
2 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ mks_display_picture_keyboard_press_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_keyboard_press_finish (keyboard, result, &error)) if (!mks_keyboard_press_finish (keyboard, result, &error))
g_warning ("Keyboard press failed: %s", error->message); g_debug ("Keyboard press failed: %s", error->message);
} }
static void static void
@ -87,7 +87,7 @@ mks_display_picture_keyboard_release_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_keyboard_release_finish (keyboard, result, &error)) if (!mks_keyboard_release_finish (keyboard, result, &error))
g_warning ("Keyboard release failed: %s", error->message); g_debug ("Keyboard release failed: %s", error->message);
} }
static void static void
@ -104,7 +104,7 @@ mks_display_picture_mouse_move_to_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_mouse_move_to_finish (mouse, result, &error)) if (!mks_mouse_move_to_finish (mouse, result, &error))
g_warning ("Failed move_to: %s", error->message); g_debug ("Failed move_to: %s", error->message);
} }
static void static void
@ -121,7 +121,7 @@ mks_display_picture_mouse_move_by_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_mouse_move_by_finish (mouse, result, &error)) if (!mks_mouse_move_by_finish (mouse, result, &error))
g_warning ("Failed move_by: %s", error->message); g_debug ("Failed move_by: %s", error->message);
} }
static void static void
@ -173,7 +173,7 @@ mks_display_picture_mouse_press_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_mouse_press_finish (mouse, result, &error)) if (!mks_mouse_press_finish (mouse, result, &error))
g_warning ("Mouse press failed: %s", error->message); g_debug ("Mouse press failed: %s", error->message);
} }
static void static void
@ -190,7 +190,7 @@ mks_display_picture_mouse_release_cb (GObject *object,
g_assert (MKS_IS_DISPLAY_PICTURE (self)); g_assert (MKS_IS_DISPLAY_PICTURE (self));
if (!mks_mouse_release_finish (mouse, result, &error)) if (!mks_mouse_release_finish (mouse, result, &error))
g_warning ("Mouse release failed: %s", error->message); g_debug ("Mouse release failed: %s", error->message);
} }
static gboolean static gboolean

View File

@ -135,7 +135,7 @@ on_screen_configure_cb (GObject *object,
g_assert (MKS_IS_SCREEN_RESIZER (self)); g_assert (MKS_IS_SCREEN_RESIZER (self));
if (!mks_screen_configure_finish (screen, result, &error)) if (!mks_screen_configure_finish (screen, result, &error))
g_warning ("Screen configure failed: %s", error->message); g_debug ("Screen configure failed: %s", error->message);
self->in_progress = FALSE; self->in_progress = FALSE;
attributes = g_steal_pointer (&self->next_op); attributes = g_steal_pointer (&self->next_op);