1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 20:31:16 +00:00

Log error code on syncthing binary crash for better logcat searchability.

This commit is contained in:
Felix Ableitner 2014-08-03 17:18:00 +02:00
parent 2eece2e350
commit 5af2e55878

View file

@ -171,6 +171,8 @@ public class SyncthingService extends Service {
if (ret != 0) { if (ret != 0) {
mMainThreadHandler.post(new Runnable() { mMainThreadHandler.post(new Runnable() {
public void run() { public void run() {
Log.w(TAG_NATIVE, "Syncthing binary crashed with error code " +
Integer.toString(retVal));
AlertDialog dialog = new AlertDialog.Builder(SyncthingService.this) AlertDialog dialog = new AlertDialog.Builder(SyncthingService.this)
.setTitle(R.string.binary_crashed_title) .setTitle(R.string.binary_crashed_title)
.setMessage(getString(R.string.binary_crashed_message, retVal)) .setMessage(getString(R.string.binary_crashed_message, retVal))