- allow logging of some events

This commit is contained in:
Richard Alam 2016-08-30 18:53:28 +00:00
parent ca3788ebb7
commit d3a43f2354
5 changed files with 70 additions and 49 deletions

View File

@ -76,7 +76,6 @@ package org.bigbluebutton.core.managers
} }
private function timeout(e:TimerEvent = null):void { private function timeout(e:TimerEvent = null):void {
LOGGER.debug("timeout");
_dispatcher.dispatchEvent(new BBBEvent(BBBEvent.CANCEL_RECONNECTION_EVENT)); _dispatcher.dispatchEvent(new BBBEvent(BBBEvent.CANCEL_RECONNECTION_EVENT));
_dispatcher.dispatchEvent(new LogoutEvent(LogoutEvent.USER_LOGGED_OUT)); _dispatcher.dispatchEvent(new LogoutEvent(LogoutEvent.USER_LOGGED_OUT));
} }

View File

@ -307,7 +307,7 @@ package org.bigbluebutton.main.model.users
private var _bwMon:BandwidthMonitor = new BandwidthMonitor(); private var _bwMon:BandwidthMonitor = new BandwidthMonitor();
private function startMonitoringBandwidth():void { private function startMonitoringBandwidth():void {
LOGGER.info("Start monitoring bandwidth."); LOGGER.debug("Start monitoring bandwidth.");
var pattern:RegExp = /(?P<protocol>.+):\/\/(?P<server>.+)\/(?P<app>.+)/; var pattern:RegExp = /(?P<protocol>.+):\/\/(?P<server>.+)\/(?P<app>.+)/;
var result:Array = pattern.exec(_applicationURI); var result:Array = pattern.exec(_applicationURI);
_bwMon.serverURL = result.server; _bwMon.serverURL = result.server;
@ -408,13 +408,16 @@ package org.bigbluebutton.main.model.users
if (this.logoutOnUserCommand) { if (this.logoutOnUserCommand) {
logData.reason = "User requested."; logData.reason = "User requested.";
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
JSLog.debug("User logged out from BBB App.", logData); logData.message = "User logged out from BBB App.";
LOGGER.info(JSON.stringify(logData));
sendUserLoggedOutEvent(); sendUserLoggedOutEvent();
} else if (reason == ConnectionFailedEvent.CONNECTION_CLOSED && !UsersUtil.isUserEjected()) { } else if (reason == ConnectionFailedEvent.CONNECTION_CLOSED && !UsersUtil.isUserEjected()) {
// do not try to reconnect if the connection failed is different than CONNECTION_CLOSED // do not try to reconnect if the connection failed is different than CONNECTION_CLOSED
logData.reason = reason; logData.reason = reason;
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
JSLog.warn("User disconnected from BBB App.", logData); logData.message = "User disconnected from BBB App.";
LOGGER.info(JSON.stringify(logData));
if (reconnecting) { if (reconnecting) {
var attemptFailedEvent:BBBEvent = new BBBEvent(BBBEvent.RECONNECT_CONNECTION_ATTEMPT_FAILED_EVENT); var attemptFailedEvent:BBBEvent = new BBBEvent(BBBEvent.RECONNECT_CONNECTION_ATTEMPT_FAILED_EVENT);
@ -432,7 +435,9 @@ package org.bigbluebutton.main.model.users
} }
} else { } else {
if (UsersUtil.isUserEjected()) { if (UsersUtil.isUserEjected()) {
LOGGER.debug("User has been ejected from meeting."); logData.user = UsersUtil.getUserData();
logData.message = "User has been ejected from meeting.";
LOGGER.info(JSON.stringify(logData));
reason = ConnectionFailedEvent.USER_EJECTED_FROM_MEETING; reason = ConnectionFailedEvent.USER_EJECTED_FROM_MEETING;
} }
LOGGER.debug("Connection failed event - " + reason); LOGGER.debug("Connection failed event - " + reason);

View File

@ -99,13 +99,17 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function yesButtonClicked():void { private function yesButtonClicked():void {
userClosed = true; userClosed = true;
LOGGER.debug("Echo test passed.");
var logData:Object = new Object(); var logData:Object = new Object();
logData.reason = "User requested."; logData.reason = "User requested.";
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
logData.message = "WebRtc Echo test passed.";
JSLog.info("WebRtc Echo test passed.", logData); JSLog.info("WebRtc Echo test passed.", logData);
LOGGER.info(JSON.stringify(logData));
setCurrentState("connecting"); setCurrentState("connecting");
lblConnectMessage.text = lblConnectMessageMock.text = ResourceUtil.getInstance().getString('bbb.micSettings.webrtc.endingecho'); lblConnectMessage.text = lblConnectMessageMock.text = ResourceUtil.getInstance().getString('bbb.micSettings.webrtc.endingecho');
@ -115,7 +119,13 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function noButtonClicked():void { private function noButtonClicked():void {
userClosed = true; userClosed = true;
LOGGER.warn("Echo test failed.");
var logData:Object = new Object();
logData.reason = "User requested.";
logData.user = UsersUtil.getUserData();
logData.message = "WebRtc Echo test failed.";
LOGGER.info(JSON.stringify(logData));
var dispatcher:Dispatcher = new Dispatcher(); var dispatcher:Dispatcher = new Dispatcher();
dispatcher.dispatchEvent(new WebRTCEchoTestEvent(WebRTCEchoTestEvent.WEBRTC_ECHO_TEST_NO_AUDIO)); dispatcher.dispatchEvent(new WebRTCEchoTestEvent(WebRTCEchoTestEvent.WEBRTC_ECHO_TEST_NO_AUDIO));
@ -183,7 +193,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
var logData:Object = new Object(); var logData:Object = new Object();
logData.reason = "User requested."; logData.reason = "User requested.";
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
JSLog.info("WebRtc call started.", logData); logData.message = "WebRtc call started.";
LOGGER.info(JSON.stringify(logData));
onCancelClicked(); onCancelClicked();
} }

View File

@ -203,6 +203,7 @@ package org.bigbluebutton.modules.phone.managers
var logData:Object = new Object(); var logData:Object = new Object();
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
logData.user.reason = errorString; logData.user.reason = errorString;
logData.message = "WebRtc Echo test failed.";
JSLog.warn("WebRtc Echo test failed.", logData); JSLog.warn("WebRtc Echo test failed.", logData);
LOGGER.info(jsonXify(logData)); LOGGER.info(jsonXify(logData));
@ -217,6 +218,7 @@ package org.bigbluebutton.modules.phone.managers
var logData:Object = new Object(); var logData:Object = new Object();
logData.user = UsersUtil.getUserData(); logData.user = UsersUtil.getUserData();
logData.user.reason = errorString; logData.user.reason = errorString;
logData.message = "WebRtc Echo test ended unexpectedly.";
LOGGER.info(jsonXify(logData)); LOGGER.info(jsonXify(logData));
sendWebRTCAlert(ResourceUtil.getInstance().getString("bbb.webrtcWarning.title"), ResourceUtil.getInstance().getString("bbb.webrtcWarning.message", [errorString]), errorString); sendWebRTCAlert(ResourceUtil.getInstance().getString("bbb.webrtcWarning.title"), ResourceUtil.getInstance().getString("bbb.webrtcWarning.message", [errorString]), errorString);

View File

@ -175,8 +175,8 @@ package org.bigbluebutton.modules.users.services
private function handleDeskShareRTMPBroadcastNotification(msg:Object):void { private function handleDeskShareRTMPBroadcastNotification(msg:Object):void {
LOGGER.debug("*** handleDeskShareRTMPBroadcastNotification **** \n", [msg]); LOGGER.debug("*** handleDeskShareRTMPBroadcastNotification **** \n", [msg]);
JSLog.warn("*** handleDeskShareRTMPBroadcastNotification **** url=", msg.rtmpUrl); LOGGER.debug("*** handleDeskShareRTMPBroadcastNotification **** url=", msg.rtmpUrl);
JSLog.warn("*** handleDeskShareRTMPBroadcastNotification **** broadcasting=", msg.broadcasting); LOGGER.debug("*** handleDeskShareRTMPBroadcastNotification **** broadcasting=", msg.broadcasting);
var event:WebRTCViewStreamEvent; var event:WebRTCViewStreamEvent;
if (msg.broadcasting) { if (msg.broadcasting) {
@ -597,7 +597,10 @@ package org.bigbluebutton.modules.users.services
user.userLocked = joinedUser.locked; user.userLocked = joinedUser.locked;
user.avatarURL = joinedUser.avatarURL; user.avatarURL = joinedUser.avatarURL;
LOGGER.info("User joined = " + JSON.stringify(user)); var logData:Object = new Object();
logData.user = user;
logData.message = "User joined.";
LOGGER.info(JSON.stringify(logData));
UserManager.getInstance().getConference().addUser(user); UserManager.getInstance().getConference().addUser(user);