OnoffControl: when logging activatefd tell the fd
authorHelmut Grohne <helmut@subdivi.de>
Sat, 20 Jul 2013 12:14:33 +0000 (14:14 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 20 Jul 2013 12:14:33 +0000 (14:14 +0200)
onoff/dbusutils.py

index c248ed5..e0312cb 100644 (file)
@@ -121,8 +121,8 @@ class OnoffControl(dbus.service.Object):
     @dbus.service.method(domain, in_signature="", out_signature="qh")
     def activatefd(self):
         """Activate a device until the returned file descriptor is closed."""
-        logger.info("activatefd")
         notifyfd, retfd = socketpair()
+        logger.info("activatefd returning fd %d", notifyfd.fileno())
         def callback(fd, _):
             logger.info("fd %d completed", fd.fileno())
             fd.close()