File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ui/src/main/java/com/wireguard/android/activity Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import android.text.Spannable
19
19
import android.text.SpannableString
20
20
import android.text.style.ForegroundColorSpan
21
21
import android.text.style.StyleSpan
22
+ import android.util.Log
22
23
import android.view.LayoutInflater
23
24
import android.view.Menu
24
25
import android.view.MenuItem
@@ -177,7 +178,7 @@ class LogViewerActivity : AppCompatActivity() {
177
178
process = try {
178
179
builder.start()
179
180
} catch (e: IOException ) {
180
- e.printStackTrace( )
181
+ Log .e( TAG , Log .getStackTraceString(e) )
181
182
return @withContext
182
183
}
183
184
val stdout = BufferedReader (InputStreamReader (process!! .inputStream, StandardCharsets .UTF_8 ))
@@ -251,6 +252,7 @@ class LogViewerActivity : AppCompatActivity() {
251
252
*/
252
253
private val THREADTIME_LINE : Pattern = Pattern .compile(" ^(\\ d{2}-\\ d{2} \\ d{2}:\\ d{2}:\\ d{2}.\\ d{3})(?:\\ s+[0-9A-Za-z]+)?\\ s+(\\ d+)\\ s+(\\ d+)\\ s+([A-Z])\\ s+(.+?)\\ s*: (.*)$" )
253
254
private val LOGS : MutableMap <String , ByteArray > = ConcurrentHashMap ()
255
+ private const val TAG = " WireGuard/LogViewerActivity"
254
256
}
255
257
256
258
private inner class LogEntryAdapter : RecyclerView .Adapter <LogEntryAdapter .ViewHolder >() {
You can’t perform that action at this time.
0 commit comments