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:
parent
2eece2e350
commit
5af2e55878
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue