]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
event-loop: Remove ply_trace calls around the disconnect handler
authorHans de Goede <hdegoede@redhat.com>
Tue, 18 Feb 2020 20:19:38 +0000 (21:19 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 9 Mar 2020 07:47:34 +0000 (08:47 +0100)
Doing a ply_trace both before and after the disconnect handler, which
gets called every time a boot client asks something of us through by
calling /sbin/plymouth leads to a lot of not really informative messages
in the debug-log.

This removes the 2 ply_trace calls around the disconnect handlers to make
the logs easier to read.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply/ply-event-loop.c

index 5eb601cc1fa5f99b0914315948ea4adb5b89c9d0..57751c2709fdb8729ed151f86a688b1ef1b0d2cf 100644 (file)
@@ -1061,15 +1061,9 @@ ply_event_loop_handle_disconnect_for_source (ply_event_loop_t   *loop,
                 destination = (ply_event_destination_t *) ply_list_node_get_data (node);
                 next_node = ply_list_get_next_node (source->destinations, node);
 
-                if (destination->disconnected_handler != NULL) {
-                        ply_trace ("calling disconnected_handler %p for fd %d",
-                                   destination->disconnected_handler, source->fd);
+                if (destination->disconnected_handler != NULL)
                         destination->disconnected_handler (destination->user_data, source->fd);
 
-                        ply_trace ("done calling disconnected_handler %p for fd %d",
-                                   destination->disconnected_handler, source->fd);
-                }
-
                 node = next_node;
         }
 }