yatatsu / AutoBundle

AutoBundle generates boilerplate code for field binding with android.os.Bundle
Apache License 2.0
135 stars 13 forks source link

Logging should be enabled only when DEBUG. #1

Closed yatatsu closed 9 years ago

yatatsu commented 9 years ago

For example, in AutoBundle or AutoBundleBindingDispacher,

public static void bind(Object target, Intent intent) {
    AutoBundleBinder binder = findBinder();
    if (binder != null) {
        binder.bind(target, intent);
    } else {
        Log.w(TAG, "AutoBundle cannot resolve binding with " + target.getClass());
    }
}

Log.w should be called only when debug.

Like ButterKnife, add debug mode and set false default.