Merge pull request #6347 from MaximKhlobystov/user-join-subscription-client-logging

Better client logs on user join/subscription
This commit is contained in:
Anton Georgiev 2018-12-07 11:10:24 -05:00 committed by GitHub
commit 08d3d8294a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ class Base extends Component {
// this.props.annotationsHandler.stop(); // this.props.annotationsHandler.stop();
if (subscriptionsReady) { if (subscriptionsReady) {
logger.info('Client loaded successfully'); logger.info('Subscriptions are ready');
} }
return (<AppContainer {...this.props} baseControls={stateControls} />); return (<AppContainer {...this.props} baseControls={stateControls} />);

View File

@ -9,6 +9,7 @@ import browser from 'browser-detect';
import BreakoutRoomContainer from '/imports/ui/components/breakout-room/container'; import BreakoutRoomContainer from '/imports/ui/components/breakout-room/container';
import PollingContainer from '/imports/ui/components/polling/container'; import PollingContainer from '/imports/ui/components/polling/container';
import PollContainer from '/imports/ui/components/poll/container'; import PollContainer from '/imports/ui/components/poll/container';
import logger from '/imports/startup/client/logger';
import ToastContainer from '../toast/container'; import ToastContainer from '../toast/container';
import ModalContainer from '../modal/container'; import ModalContainer from '../modal/container';
import NotificationsBarContainer from '../notifications-bar/container'; import NotificationsBarContainer from '../notifications-bar/container';
@ -95,6 +96,8 @@ class App extends Component {
this.handleWindowResize(); this.handleWindowResize();
window.addEventListener('resize', this.handleWindowResize, false); window.addEventListener('resize', this.handleWindowResize, false);
logger.info('Client loaded successfully');
} }
componentWillUnmount() { componentWillUnmount() {

View File

@ -6,7 +6,6 @@ import Auth from '/imports/ui/services/auth';
import Users from '/imports/api/users'; import Users from '/imports/api/users';
import Breakouts from '/imports/api/breakouts'; import Breakouts from '/imports/api/breakouts';
import Meetings from '/imports/api/meetings'; import Meetings from '/imports/api/meetings';
import logger from '/imports/startup/client/logger';
import ClosedCaptionsContainer from '/imports/ui/components/closed-captions/container'; import ClosedCaptionsContainer from '/imports/ui/components/closed-captions/container';
import getFromUserSettings from '/imports/ui/services/users-settings'; import getFromUserSettings from '/imports/ui/services/users-settings';
@ -77,8 +76,6 @@ export default injectIntl(withModalMounter(withTracker(({ intl, baseControls })
baseControls.updateLoadingState(intl.formatMessage(intlMessages.waitingApprovalMessage)); baseControls.updateLoadingState(intl.formatMessage(intlMessages.waitingApprovalMessage));
} }
logger.info('User joined meeting and subscribed to data successfully');
// Check if user is removed out of the session // Check if user is removed out of the session
Users.find({ userId: Auth.userID }).observeChanges({ Users.find({ userId: Auth.userID }).observeChanges({
changed(id, fields) { changed(id, fields) {