PeerConnection(Android): enable tracing to logcat.
BUG=1295 R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2258007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4888 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -104,12 +104,6 @@ public class AppRTCDemoActivity extends Activity
|
||||
}
|
||||
});
|
||||
|
||||
// Uncomment to get ALL WebRTC tracing and SENSITIVE libjingle logging.
|
||||
// Logging.enableTracing(
|
||||
// "/sdcard/trace.txt",
|
||||
// EnumSet.of(Logging.TraceLevel.TRACE_ALL),
|
||||
// Logging.Severity.LS_SENSITIVE);
|
||||
|
||||
PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);
|
||||
wakeLock = powerManager.newWakeLock(
|
||||
PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "AppRTCDemo");
|
||||
@@ -191,6 +185,13 @@ public class AppRTCDemoActivity extends Activity
|
||||
pc = factory.createPeerConnection(
|
||||
iceServers, appRtcClient.pcConstraints(), pcObserver);
|
||||
|
||||
// Uncomment to get ALL WebRTC tracing and SENSITIVE libjingle logging.
|
||||
// NOTE: this _must_ happen while |factory| is alive!
|
||||
// Logging.enableTracing(
|
||||
// "logcat:",
|
||||
// EnumSet.of(Logging.TraceLevel.TRACE_ALL),
|
||||
// Logging.Severity.LS_SENSITIVE);
|
||||
|
||||
{
|
||||
final PeerConnection finalPC = pc;
|
||||
final Runnable repeatedStatsLogger = new Runnable() {
|
||||
|
Reference in New Issue
Block a user