update logging

This commit is contained in:
peter
2022-08-01 17:11:53 +00:00
parent 0a94a230b9
commit b80905dda5

View File

@@ -36,7 +36,6 @@ instance.prototype.init = function () {
self.auth() self.auth()
self.getWorkspace() self.getWorkspace()
self.getCurrentTimer().then((timerId) => { self.getCurrentTimer().then((timerId) => {
self.log('debug', 'Current timer id ' + timerId.id + ' ' + timerId.description)
self.setVariable('timerId', timerId.id) self.setVariable('timerId', timerId.id)
self.setVariable('timerDescription', timerId.description) self.setVariable('timerDescription', timerId.description)
}) })
@@ -259,7 +258,7 @@ instance.prototype.action = function (action) {
} }
case 'getCurrentTimer': { case 'getCurrentTimer': {
self.getCurrentTimer().then((result) => { self.getCurrentTimer().then((result) => {
self.log('debug', 'Current timer id ' + result.id) self.log('debug', 'Current timer id ' + timerId.id + ' ' + timerId.description)
self.setVariable('timerId', result.id) self.setVariable('timerId', result.id)
self.setVariable('timerDescription', result.description) self.setVariable('timerDescription', result.description)
}) })