vn-verdnaturachat/app/utils/log.js

12 lines
227 B
JavaScript
Raw Normal View History

import { Answers } from 'react-native-fabric';
export default (event, error) => {
if (typeof error !== 'object') {
error = { error };
}
Answers.logCustom(event, error);
if (__DEV__) {
console.warn(event, error);
}
};