From 5af2e55878a6819cadd4bea59f4197899fc4a1c6 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 3 Aug 2014 17:18:00 +0200 Subject: [PATCH] Log error code on syncthing binary crash for better logcat searchability. --- .../nutomic/syncthingandroid/syncthing/SyncthingService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index 8b7323e5..bf0a82e2 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -171,6 +171,8 @@ public class SyncthingService extends Service { if (ret != 0) { mMainThreadHandler.post(new Runnable() { public void run() { + Log.w(TAG_NATIVE, "Syncthing binary crashed with error code " + + Integer.toString(retVal)); AlertDialog dialog = new AlertDialog.Builder(SyncthingService.this) .setTitle(R.string.binary_crashed_title) .setMessage(getString(R.string.binary_crashed_message, retVal))