mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 15:51:17 +00:00
Disable timestamps in Syncthing logs (fixes #960)
This commit is contained in:
parent
16cbc91405
commit
a545fddb33
2 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ public class LogActivity extends SyncthingActivity {
|
||||||
try {
|
try {
|
||||||
ProcessBuilder pb;
|
ProcessBuilder pb;
|
||||||
if (syncthingLog) {
|
if (syncthingLog) {
|
||||||
pb = new ProcessBuilder("/system/bin/logcat", "-t", "300", "-v", "raw", "-s", "SyncthingNativeCode");
|
pb = new ProcessBuilder("/system/bin/logcat", "-t", "300", "-v", "time", "-s", "SyncthingNativeCode");
|
||||||
} else {
|
} else {
|
||||||
pb = new ProcessBuilder("/system/bin/logcat", "-t", "300", "-v", "time", "*:i ps:s art:s");
|
pb = new ProcessBuilder("/system/bin/logcat", "-t", "300", "-v", "time", "*:i ps:s art:s");
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,13 +73,13 @@ public class SyncthingRunnable implements Runnable {
|
||||||
mUseRoot = mPreferences.getBoolean(Constants.PREF_USE_ROOT, false) && Shell.SU.available();
|
mUseRoot = mPreferences.getBoolean(Constants.PREF_USE_ROOT, false) && Shell.SU.available();
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case generate:
|
case generate:
|
||||||
mCommand = new String[]{ mSyncthingBinary.getPath(), "-generate", mContext.getFilesDir().toString() };
|
mCommand = new String[]{ mSyncthingBinary.getPath(), "-generate", mContext.getFilesDir().toString(), "-logflags=0" };
|
||||||
break;
|
break;
|
||||||
case main:
|
case main:
|
||||||
mCommand = new String[]{ mSyncthingBinary.getPath(), "-home", mContext.getFilesDir().toString(), "-no-browser" };
|
mCommand = new String[]{ mSyncthingBinary.getPath(), "-home", mContext.getFilesDir().toString(), "-no-browser", "-logflags=0" };
|
||||||
break;
|
break;
|
||||||
case reset:
|
case reset:
|
||||||
mCommand = new String[]{ mSyncthingBinary.getPath(), "-home", mContext.getFilesDir().toString(), "-reset" };
|
mCommand = new String[]{ mSyncthingBinary.getPath(), "-home", mContext.getFilesDir().toString(), "-reset", "-logflags=0" };
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new InvalidParameterException("Unknown command option");
|
throw new InvalidParameterException("Unknown command option");
|
||||||
|
|
Loading…
Reference in a new issue