improve logging for throws from native callbacks
This commit is contained in:
parent
eb911b8196
commit
5b12e23382
|
@ -545,7 +545,9 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
if (connections.containsValue(connection)) {
|
if (connections.containsValue(connection)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("JingleConnection has not been registered with connection manager");
|
final IllegalStateException e = new IllegalStateException("JingleConnection has not been registered with connection manager");
|
||||||
|
Log.e(Config.LOGTAG, "ensureConnectionIsRegistered() failed. Going to throw", e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void endSession(AbstractJingleConnection.Id id, final AbstractJingleConnection.State state) {
|
public void endSession(AbstractJingleConnection.Id id, final AbstractJingleConnection.State state) {
|
||||||
|
|
|
@ -254,7 +254,9 @@ public class WebRTCWrapper {
|
||||||
|| this.eglBase != null
|
|| this.eglBase != null
|
||||||
|| this.localVideoTrack != null
|
|| this.localVideoTrack != null
|
||||||
|| this.remoteVideoTrack != null) {
|
|| this.remoteVideoTrack != null) {
|
||||||
throw new IllegalStateException("WebRTCWrapper hasn't been closed properly");
|
final IllegalStateException e = new IllegalStateException("WebRTCWrapper hasn't been closed properly");
|
||||||
|
Log.e(Config.LOGTAG, "verifyClosed() failed. Going to throw", e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue