Changeset 1b57352 for fedd/fedd.py


Ignore:
Timestamp:
Nov 28, 2008 4:04:25 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
0a20ef8
Parents:
a2da110
Message:

Deal with common connection and SSL errors cleanly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd.py

    ra2da110 r1b57352  
    9191        self.xmlrpc_methods = impl.xmlrpc_services
    9292        self.log = logging.getLogger("fedd")
     93
     94    def handle_error(self, request, address):
     95        """
     96        The default SSLServer prints a stack trace here.  This is a little
     97        friendlier.
     98        """
     99        if request or address:
     100            self.log.warn("[fedd] Error on incoming connection: %s %s" % \
     101                    (request, address))
     102        else:
     103            self.log.warn("[fedd] Error on incoming connection " + \
     104                    "(Likely SSL error)")
    93105
    94106class fedd_soap_handler(BaseHTTPRequestHandler):
Note: See TracChangeset for help on using the changeset viewer.