зеркало из https://github.com/microsoft/ghcrawler.git
pass logger through to app
This commit is contained in:
Родитель
11102ea00c
Коммит
b5b2b20026
|
@ -20,7 +20,7 @@ function run(service, logger) {
|
|||
const defaults = config.get('CRAWLER_OPTIONS') || './memoryConfig';
|
||||
service = CrawlerFactory.createService(require(defaults), logger);
|
||||
}
|
||||
const app = appFactory(service);
|
||||
const app = appFactory(service, logger);
|
||||
app.set('port', port);
|
||||
|
||||
const server = http.createServer(app);
|
||||
|
|
2
index.js
2
index.js
|
@ -19,5 +19,5 @@ module.exports.run = (defaults, logger, searchPath, maps) => {
|
|||
const service = CrawlerFactory.createService(defaults, logger, searchPath);
|
||||
Object.getOwnPropertyNames(maps).forEach(name =>
|
||||
VisitorMap.register(name, maps[name]))
|
||||
www(service);
|
||||
www(service, logger);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче