Log syncthing restarts.
This commit is contained in:
parent
37044eea4c
commit
201bc9ecae
|
@ -67,6 +67,10 @@ public class SyncthingRunnable implements Runnable {
|
||||||
log(process.getErrorStream(), Log.WARN);
|
log(process.getErrorStream(), Log.WARN);
|
||||||
|
|
||||||
ret = process.waitFor();
|
ret = process.waitFor();
|
||||||
|
|
||||||
|
if (ret == 3) {
|
||||||
|
Log.i(TAG, "Restarting syncthing");
|
||||||
|
}
|
||||||
} while (ret == 3);
|
} while (ret == 3);
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
Log.e(TAG, "Failed to execute syncthing binary or read output", e);
|
Log.e(TAG, "Failed to execute syncthing binary or read output", e);
|
||||||
|
|
Loading…
Reference in New Issue