Rocket.Chat.ReactNative/app/utils/log.js

12 lines
220 B
JavaScript
Raw Normal View History

import { Answers } from 'react-native-fabric';
export default (event, error) => {
if (typeof error !== 'object') {
error = { error };
}
2018-12-05 20:52:08 +00:00
Answers.logCustom(event);
if (__DEV__) {
console.warn(event, error);
}
};