mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +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
|
@ -41,7 +41,7 @@ module.exports = syrup.serial()
|
|||
.catch(grouputil.NoGroupError, function() {
|
||||
currentGroup = newGroup
|
||||
|
||||
log.info('Now owned by "%s"', currentGroup.email)
|
||||
log.important('Now owned by "%s"', currentGroup.email)
|
||||
log.info('Subscribing to group channel "%s"', currentGroup.group)
|
||||
|
||||
channels.register(currentGroup.group, timeout || options.groupTimeout)
|
||||
|
@ -64,7 +64,7 @@ module.exports = syrup.serial()
|
|||
plugin.leave = function() {
|
||||
return plugin.get()
|
||||
.then(function(group) {
|
||||
log.info('No longer owned by "%s"', group.email)
|
||||
log.important('No longer owned by "%s"', group.email)
|
||||
log.info('Unsubscribing from group channel "%s"', group.group)
|
||||
|
||||
channels.unregister(group.group)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue