CartoDB-SQL-API/metro/index.js

12 lines
271 B
JavaScript
Raw Normal View History

'use strict';
const split = require('split2');
const logCollector = require('./log-collector');
const metricsCollector = require('./metrics-collector');
process.stdin
.pipe(split())
.pipe(logCollector())
.pipe(metricsCollector())
.pipe(process.stdout);