mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-25 23:36:45 +00:00
Implement logging interface for ringrtc-0.1.8
Implement the org.signal.ringrtc.Log.Logger interface, using org.thoughtcrime.securesms.logging.Log as the underlying logger. This allows ringrtc to log in the same way as the rest of the application.
This commit is contained in:
@@ -64,6 +64,7 @@ import org.thoughtcrime.securesms.notifications.MessageNotifier;
|
||||
import org.thoughtcrime.securesms.notifications.NotificationChannels;
|
||||
import org.thoughtcrime.securesms.providers.BlobProvider;
|
||||
import org.thoughtcrime.securesms.push.SignalServiceNetworkAccess;
|
||||
import org.thoughtcrime.securesms.ringrtc.RingRtcLogger;
|
||||
import org.thoughtcrime.securesms.service.DirectoryRefreshListener;
|
||||
import org.thoughtcrime.securesms.service.ExpiringMessageManager;
|
||||
import org.thoughtcrime.securesms.service.IncomingMessageObserver;
|
||||
@@ -319,7 +320,7 @@ public class ApplicationContext extends MultiDexApplication implements DefaultLi
|
||||
WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(true);
|
||||
}
|
||||
|
||||
CallConnectionFactory.initialize(this);
|
||||
CallConnectionFactory.initialize(this, new RingRtcLogger());
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
Log.w(TAG, e);
|
||||
}
|
||||
|
||||
30
src/org/thoughtcrime/securesms/ringrtc/RingRtcLogger.java
Normal file
30
src/org/thoughtcrime/securesms/ringrtc/RingRtcLogger.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package org.thoughtcrime.securesms.ringrtc;
|
||||
|
||||
import org.thoughtcrime.securesms.logging.Log;
|
||||
|
||||
public class RingRtcLogger implements org.signal.ringrtc.Log.Logger {
|
||||
@Override
|
||||
public void v(String tag, String message, Throwable t) {
|
||||
Log.v(tag, message, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void d(String tag, String message, Throwable t) {
|
||||
Log.d(tag, message, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void i(String tag, String message, Throwable t) {
|
||||
Log.i(tag, message, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void w(String tag, String message, Throwable t) {
|
||||
Log.w(tag, message, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void e(String tag, String message, Throwable t) {
|
||||
Log.e(tag, message, t);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user