From: Hans de Goede Date: Tue, 18 Feb 2020 20:19:38 +0000 (+0100) Subject: event-loop: Remove ply_trace calls around the disconnect handler X-Git-Tag: 0.9.5~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7634c54175d7ca70f0bdd8151fda15649590002c;p=thirdparty%2Fplymouth.git event-loop: Remove ply_trace calls around the disconnect handler 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 --- diff --git a/src/libply/ply-event-loop.c b/src/libply/ply-event-loop.c index 5eb601cc..57751c27 100644 --- a/src/libply/ply-event-loop.c +++ b/src/libply/ply-event-loop.c @@ -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; } }