/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-09 16:14:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1046.
  • Revision ID: teddy@recompile.se-20190309161406-7dfkgkwxukkozwrh
mandos-ctl: Add missing D-Bus debug output

* mandos-ctl (main): Add debug output when connecting to D-Bus client
                     objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
    clients = {}
763
763
 
764
764
    if not clientnames:
765
 
        clients = {bus.get_object(busname, path): properties
 
765
        clients = {(log.debug("D-Bus: Connect to: (name=%r, path=%r)",
 
766
                              busname, str(path)) and False) or
 
767
                   bus.get_object(busname, path): properties
766
768
                   for path, properties in mandos_clients.items()}
767
769
    else:
768
770
        for name in clientnames:
769
771
            for path, client in mandos_clients.items():
770
772
                if client["Name"] == name:
 
773
                    log.debug("D-Bus: Connect to: (name=%r, path=%r)",
 
774
                              busname, str(path))
771
775
                    client_objc = bus.get_object(busname, path)
772
776
                    clients[client_objc] = client
773
777
                    break