1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Separate device log recording from the rest of the app. This should cause less strain on the DB server especially since the full event log is rarely needed; you could just use your favorite log collector to watch stderr. DB calls are still mixed, but may be refactored out later.

This commit is contained in:
Simo Kinnunen 2015-08-04 20:41:36 +09:00
parent 85067b6f0b
commit 3e5903edcf
4 changed files with 107 additions and 2 deletions

View file

@ -539,6 +539,29 @@ program
})
})
program
.command('log-rethinkdb')
.description('start a rethinkdb log recorder')
.option('-p, --priority <level>'
, 'minimum log level'
, Number
, logger.Level.DEBUG)
.option('-s, --connect-sub <endpoint>'
, 'sub endpoint'
, cliutil.list)
.action(function(options) {
if (!options.connectSub) {
this.missingArgument('--connect-sub')
}
require('./units/log/rethinkdb')({
priority: options.priority
, endpoints: {
sub: options.connectSub
}
})
})
program
.command('poorxy')
.description('start a poor reverse proxy for local development')