Disable timestamps in Syncthing logs (fixes #960)

This commit is contained in:
Felix Ableitner 2017-10-24 22:59:07 +09:00
parent 16cbc91405
commit a545fddb33
2 changed files with 4 additions and 4 deletions

View File

@ -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");
} }

View File

@ -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");