Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7f1b28058b9f625dd403c572029ddadb > files > 4

denyhosts-2.6-23.fc15.src.rpm

diff -up DenyHosts-2.6/denyhosts.py.orig DenyHosts-2.6/denyhosts.py
--- DenyHosts-2.6/denyhosts.py.orig	2008-11-07 16:10:06.000000000 -0600
+++ DenyHosts-2.6/denyhosts.py	2008-11-07 16:11:11.000000000 -0600
@@ -17,6 +17,7 @@ from DenyHosts.denyfileutil import Purge
 from DenyHosts.constants import *
 from DenyHosts.sync import Sync
 
+info = logging.getLogger("denyhosts").info
 #################################################################################
 
 
@@ -186,8 +187,8 @@ if __name__ == '__main__':
                 new_hosts = sync.receive_new_hosts()
                 if new_hosts:
                     info("received new hosts: %s", str(new_hosts))
-                    sync.get_denied_hosts()
-                    sync.update_hosts_deny(new_hosts)
+                    dh.get_denied_hosts()
+                    dh.update_hosts_deny(new_hosts)
             sync.xmlrpc_disconnect()
         except Exception, e:
             lock_file.remove()