mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-24 10:52:50 +07:00
dbus: log received message only once, in filter function
This commit is contained in:
parent
07405e9096
commit
46d95c0fe0
@ -123,11 +123,6 @@ static DBusHandlerResult bus_job_message_handler(DBusConnection *connection, DBu
|
|||||||
assert(message);
|
assert(message);
|
||||||
assert(m);
|
assert(m);
|
||||||
|
|
||||||
log_debug("Got D-Bus request: %s.%s() on %s",
|
|
||||||
dbus_message_get_interface(message),
|
|
||||||
dbus_message_get_member(message),
|
|
||||||
dbus_message_get_path(message));
|
|
||||||
|
|
||||||
if ((r = manager_get_job_from_dbus_path(m, dbus_message_get_path(message), &j)) < 0) {
|
if ((r = manager_get_job_from_dbus_path(m, dbus_message_get_path(message), &j)) < 0) {
|
||||||
|
|
||||||
if (r == -ENOMEM)
|
if (r == -ENOMEM)
|
||||||
|
@ -243,11 +243,6 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
|
|||||||
|
|
||||||
dbus_error_init(&error);
|
dbus_error_init(&error);
|
||||||
|
|
||||||
log_debug("Got D-Bus request: %s.%s() on %s",
|
|
||||||
dbus_message_get_interface(message),
|
|
||||||
dbus_message_get_member(message),
|
|
||||||
dbus_message_get_path(message));
|
|
||||||
|
|
||||||
if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Manager", "GetUnit")) {
|
if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Manager", "GetUnit")) {
|
||||||
const char *name;
|
const char *name;
|
||||||
Unit *u;
|
Unit *u;
|
||||||
|
@ -345,11 +345,6 @@ static DBusHandlerResult bus_unit_message_handler(DBusConnection *connection, DB
|
|||||||
assert(message);
|
assert(message);
|
||||||
assert(m);
|
assert(m);
|
||||||
|
|
||||||
log_debug("Got D-Bus request: %s.%s() on %s",
|
|
||||||
dbus_message_get_interface(message),
|
|
||||||
dbus_message_get_member(message),
|
|
||||||
dbus_message_get_path(message));
|
|
||||||
|
|
||||||
if ((r = manager_get_unit_from_dbus_path(m, dbus_message_get_path(message), &u)) < 0) {
|
if ((r = manager_get_unit_from_dbus_path(m, dbus_message_get_path(message), &u)) < 0) {
|
||||||
|
|
||||||
if (r == -ENOMEM)
|
if (r == -ENOMEM)
|
||||||
|
Loading…
Reference in New Issue
Block a user