'We need to override this because UNIX domain sockets return
an empty string for the addr rather than a (host, port) combination'

def log(self, bytes):

    if self.channel.addr:
        host = self.channel.addr[0]
        port = self.channel.addr[1]
    else:
        host = 'localhost'
        port = 0
    self.channel.server.logger.log(host, ('%d    -    -    [%s]    "%s"    %d    %d\n' % (port, self.log_date_string(time.time()), self.request, self.reply_code, bytes)))
