Skip to content
Snippets Groups Projects
Commit f0cb8ffa authored by Maxim Khlobystov's avatar Maxim Khlobystov
Browse files

Using client logger for errors caught when switching between cameras in webcam settings modal.

parent 1013e967
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import { defineMessages, injectIntl, intlShape } from 'react-intl';
import Button from '/imports/ui/components/button/component';
import ModalBase from '/imports/ui/components/modal/base/component';
import { notify } from '/imports/ui/services/notification';
import logger from '/imports/startup/client/logger';
import { styles } from './styles';
const VIDEO_CONSTRAINTS = Meteor.settings.public.kurento.cameraConstraints;
......@@ -106,6 +107,7 @@ class VideoPreview extends Component {
this.deviceStream = stream;
}).catch((error) => {
notify(intl.formatMessage(intlMessages.sharingError), 'error', 'video');
logger.error(error);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment