diff --git a/metro/log-collector.js b/metro/log-collector.js index 4eda405d..39e3df9c 100644 --- a/metro/log-collector.js +++ b/metro/log-collector.js @@ -47,6 +47,9 @@ module.exports = function logCollector () { // rename level => levelname to avoid type clashing in ES accEntry.levelname = LEVELS[accEntry.level]; delete accEntry.level; + accEntry.errors = accEntry.error; + delete accEntry.error; + accEntry.time = entry.time; this.push(`${JSON.stringify(accEntry)}\n`); logs.delete(id);