diff --git a/server/taskManager.js b/server/taskManager.js index 624ab01a..1968b895 100644 --- a/server/taskManager.js +++ b/server/taskManager.js @@ -28,11 +28,11 @@ class Task { try { const ret = this.method.apply(this, this.args) if (ret && typeof ret.then === 'function') { - ret.catch(e => log.error('TASK ERROR [%s]: %s', this.name, e)) + ret.catch(e => log.error(`TASK ERROR [${this.name}]: ${e} ${e.stack}`)) return ret } } catch (e) { - log.error('TASK ERROR [%s]: %s ', this.name, e) + log.error(`TASK ERROR [${this.name}]: ${e} ${e.stack}`) return Promise.resolve(false) } }