You can edit DenyHosts/sync.py and replace the two lines that have:
exception(e)
(one is in the __send_new_hosts around line 103 and the
other in receive_new_hosts method around line 128)
with either:
error(e)
or:
pass
The first will log that an error occured w/o the traceback. The second
will ignore any errors w/o logging them.
Then save the file and restart DH.
Regards,
Phil
On Tue, 21 Sep 2010, Robin Atwood wrote:
> I live in Thailand and I notice that processes poking addresses in the US
> sometimes fail but work on a retry. My DenyHosts logging is filled with
> entries:
>
> Traceback (most recent call last):
> File "/usr/lib64/python2.6/site-packages/DenyHosts/sync.py", line 117, in
> receive_new_hosts
> self.__prefs.get("SYNC_DOWNLOAD_RESILIENCY"))
> File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
> verbose=self.__verbose
> File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request
> self.send_content(h, request_body)
> File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content
> connection.endheaders()
> File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
> self._send_output()
> File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
> self.send(msg)
> File "/usr/lib64/python2.6/httplib.py", line 739, in send
> self.connect()
> File "/usr/lib64/python2.6/httplib.py", line 720, in connect
> self.timeout)
> File "/usr/lib64/python2.6/socket.py", line 557, in create_connection
> raise error, msg
> error: [Errno 111] Connection refused
>
> Is it possible to suppress this logging via some tweak or, preferably, an
> option?
>
> TIA
> -Robin
>
--
Regards,
Phil Schwartz
http://www.phil-schwartz.com
Open Source Projects:
DenyHosts: http://www.denyhosts.net
Kodos: http://kodos.sourceforge.net
ReleaseForge: http://releaseforge.sourceforge.net
Scratchy: http://scratchy.sourceforge.net
FAQtor: http://faqtor.sourceforge.net
Become a fan of DenyHosts:
http://www.facebook.com/pages/DenyHosts/58269629216
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user