def log(self, status, environ):
        outfile = environ.get('wsgi.errors', web.debug)
        req = environ.get('PATH_INFO', '_')
        protocol = environ.get('ACTUAL_SERVER_PROTOCOL', '-')
        method = environ.get('REQUEST_METHOD', '-')
        host = "%s:%s" % (environ.get('REMOTE_ADDR','-'), 
                          environ.get('REMOTE_PORT','-'))

        time = self.log_date_time_string()

        msg = (host, time, protocol, method, req, status) % self.format
        print >> outfile, utils.safestr(msg)
dataset/ETHPy150Open rouge8/20questions/web/httpserver.py/LogMiddleware.log/swapped operands of `%`