mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-26 21:01:32 +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 {
|
||||
ProcessBuilder pb;
|
||||
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 {
|
||||
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();
|
||||
switch (command) {
|
||||
case generate:
|
||||
mCommand = new String[]{ mSyncthingBinary.getPath(), "-generate", mContext.getFilesDir().toString() };
|
||||
mCommand = new String[]{ mSyncthingBinary.getPath(), "-generate", mContext.getFilesDir().toString(), "-logflags=0" };
|
||||
break;
|
||||
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;
|
||||
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;
|
||||
default:
|
||||
throw new InvalidParameterException("Unknown command option");
|
||||
|
|
Loading…
Reference in a new issue