Log syncthing restarts.

This commit is contained in:
Felix Ableitner 2014-11-17 15:09:21 +02:00
parent 37044eea4c
commit 201bc9ecae
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ public class SyncthingRunnable implements Runnable {
log(process.getErrorStream(), Log.WARN);
ret = process.waitFor();
if (ret == 3) {
Log.i(TAG, "Restarting syncthing");
}
} while (ret == 3);
} catch (IOException | InterruptedException e) {
Log.e(TAG, "Failed to execute syncthing binary or read output", e);