def __init__(self, logya): """Initialize HTTPServer listening on the specified host and port.""" self.logya = logya self.logya.init_env() logging.basicConfig(level=logging.INFO) HTTPServer.__init__(self, (self.logya.host, self.logya.port), HTTPRequestHandler)
def __init__(self, logya): """Initialize HTTPServer listening on the specified host and port.""" self.logya = logya self.logya.init_env() logging.basicConfig(level=logging.INFO) HTTPServer.__init__( self, (self.logya.host, self.logya.port), HTTPRequestHandler)
def __init__(self, logya): '''Initialize HTTPServer listening on the specified host and port.''' self.logya = logya self.logya.init_env() log_file = os.path.join(self.logya.dir_current, 'server.log') logging.basicConfig(filename=log_file, level=logging.INFO) HTTPServer.__init__( self, (self.logya.host, self.logya.port), HTTPRequestHandler)
def __init__(self, logya): '''Initialize HTTPServer listening on the specified host and port.''' self.logya = logya self.logya.init_env() log_file = os.path.join(self.logya.dir_current, 'server.log') logging.basicConfig(filename=log_file, level=logging.INFO) HTTPServer.__init__(self, (self.logya.host, self.logya.port), HTTPRequestHandler)