Add a new log priority: important. Should make it easier to display interesting non-error messages.

This commit is contained in:
Simo Kinnunen
2014-06-02 12:19:52 +09:00
parent 1095c1ba97
commit 97c4d24a7a
4 changed files with 52 additions and 32 deletions

View File

@@ -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
}