mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Add a new log priority: important. Should make it easier to display interesting non-error messages.
This commit is contained in:
parent
1095c1ba97
commit
97c4d24a7a
4 changed files with 52 additions and 32 deletions
|
@ -354,6 +354,10 @@ program
|
|||
.option('-p, --priority <level>'
|
||||
, 'minimum log level'
|
||||
, Number
|
||||
, logger.Level.IMPORTANT)
|
||||
.option('-n, --notify-priority <level>'
|
||||
, 'minimum log level to cause a notification'
|
||||
, Number
|
||||
, logger.Level.WARNING)
|
||||
.option('-s, --connect-sub <endpoint>'
|
||||
, 'sub endpoint'
|
||||
|
@ -373,6 +377,7 @@ program
|
|||
token: options.token
|
||||
, room: options.room
|
||||
, priority: options.priority
|
||||
, notifyPriority: options.notifyPriority
|
||||
, endpoints: {
|
||||
sub: options.connectSub
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue