Android: Bump stack trace logging severity from debug to warning

Stack traces usually get printed when an error occur and we want this
to be included in release versions.

Bug: None
Change-Id: I17fdbc58393f5b4d597b14e95240bdb04473b4ad
Reviewed-on: https://webrtc-review.googlesource.com/c/112133
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25821}
This commit is contained in:
Magnus Jedvert
2018-11-27 16:19:55 +01:00
committed by Commit Bot
parent 68478b8287
commit 0cc11b4b94
2 changed files with 8 additions and 4 deletions

View File

@ -490,9 +490,9 @@ public class PeerConnectionFactory {
if (thread != null) {
StackTraceElement[] stackTraces = thread.getStackTrace();
if (stackTraces.length > 0) {
Logging.d(TAG, threadName + " stacks trace:");
Logging.w(TAG, threadName + " stacks trace:");
for (StackTraceElement stackTrace : stackTraces) {
Logging.d(TAG, stackTrace.toString());
Logging.w(TAG, stackTrace.toString());
}
}
}