This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Files
reValuate/node_modules/expo/tools/LogReporter.js
Yamozha 7256d79e2c yeet
2021-04-02 02:24:13 +03:00

17 lines
349 B
JavaScript

const serializeError = require('serialize-error');
/**
* @deprecated: Remove in SDK 38
* https://github.com/expo/expo-cli/pull/1269
*/
class LogReporter {
update(event) {
if (event.error instanceof Error) {
event.error = serializeError(event.error);
}
console.log(JSON.stringify(event));
}
}
module.exports = LogReporter;