@@ -68,13 +68,13 @@ - (OFPlugin *)loadModuleAtPath: (OFString *)path withConfig: (OFXMLElement *)config { OFPlugin *module; - of_log(@"Loading module at %@", path); + OFLog(@"Loading module at %@", path); - module = [OFPlugin pluginFromFile: path]; + module = [OFPlugin pluginWithPath: path]; [module parseConfig: config]; return module; } @@ -92,11 +92,11 @@ } server.numberOfThreads = [OFSystemInfo numberOfCPUs] + 1; server.delegate = self; - of_log(@"Starting server on host %@ port %" PRIu16, + OFLog(@"Starting server on host %@ port %" PRIu16, listenConfig.host, listenConfig.port); [server start]; } @@ -105,11 +105,11 @@ requestBody: (OFStream *)requestBody response: (OFHTTPResponse *)response { OFString *path = request.URL.path; - of_log(@"Request: %@", request); + OFLog(@"Request: %@", request); for (OFPair OF_GENERIC(OFString *, id ) *module in _modules) if ([path hasPrefix: module.firstObject]) if ([module.secondObject handleRequest: request requestBody: requestBody @@ -118,10 +118,10 @@ } - (bool)server: (OFHTTPServer *)server didReceiveExceptionOnListeningSocket: (id)exception { - of_log(@"Exception on listening socket: %@", exception); + OFLog(@"Exception on listening socket: %@", exception); return true; } @end