Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 462e67e9 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Fix missing tag in log

parent 0776c6b9
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public class ObserverService extends Service implements OnRemoteOperationListene
    /* Lifecycle Methods */
    @Override
    public void onDestroy(){
        Timber.i("onDestroy()");
        Timber.v("onDestroy()");
        unbindService(synchronizationServiceConnection);
        super.onDestroy();
        this.mSyncedFolders = null;
@@ -291,7 +291,7 @@ public class ObserverService extends Service implements OnRemoteOperationListene
     */
    @Override
    public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) {
        Timber.i("onRemoteOperationFinish()");
        Timber.d("onRemoteOperationFinish()");
        if (!(operation instanceof ListFileRemoteOperation)) return;

        if (!result.isSuccess()) {
@@ -365,7 +365,7 @@ public class ObserverService extends Service implements OnRemoteOperationListene
     * I.e : " com.android.my_example_package,7.1.2 "
     */
    private void generateAppListFile() {
        Timber.i("generateAppListFile()");
        Timber.d("generateAppListFile()");
        final List<PackageInfo> packagesInfo = getPackageManager().getInstalledPackages(0);

        final StringBuilder fileContents = new StringBuilder();
+2 −21
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ import androidx.annotation.Nullable;

import timber.log.Timber;

public class ReleaseTree extends Timber.Tree {
public class ReleaseTree extends Timber.DebugTree{
    private static boolean debugEnable = false;

    public static void allowDebugLogOnProd(boolean allow) {
@@ -19,25 +19,6 @@ public class ReleaseTree extends Timber.Tree {
        if (!debugEnable && priority < Log.INFO ) {
            return;
        }
        switch (priority) {
            case Log.VERBOSE:
                Log.v(tag, message, throwable);
                break;
            case Log.DEBUG:
                Log.d(tag, message, throwable);
                break;
            case Log.INFO:
                Log.i(tag, message, throwable);
                break;
            case Log.WARN:
                Log.w(tag, message, throwable);
                break;
            case Log.ERROR:
                Log.w(tag, message, throwable);
                break;
            case Log.ASSERT:
                Log.wtf(tag, message, throwable);
                break;
        }
        super.log(priority, tag, message, throwable);
    }
}