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

Commit 22e834f3 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Enable transport logging based on isLoggable().

Instead of creating a new public API that requires developers to call
it, offer to enable transport logging based on the class name.

Bug: 137890034
Test: manual
Change-Id: Iea2a24310bd100be62a5c525108d17bafe7d11ea
parent 01dee0df
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2112,6 +2112,10 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
                mSingleUser = (info.flags & ProviderInfo.FLAG_SINGLE_USER) != 0;
                setAuthorities(info.authority);
            }
            if (Build.IS_DEBUGGABLE) {
                setTransportLoggingEnabled(Log.isLoggable(getClass().getSimpleName(),
                        Log.VERBOSE));
            }
            ContentProvider.this.onCreate();
        }
    }