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:
parent
85067b6f0b
commit
3e5903edcf
4 changed files with 107 additions and 2 deletions
23
lib/cli.js
23
lib/cli.js
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue