package com.marverenic.music.utils;

import android.util.Log;

import com.crashlytics.android.Crashlytics;

import timber.log.Timber;

public class CrashlyticsTree extends Timber.Tree {

    @Override
    protected void log(int priority, String tag, String message, Throwable throwable) {
        if (throwable != null) {
            Crashlytics.logException(throwable);
        } else if (priority == Log.ERROR) {
            Crashlytics.log(priority, tag, message);
        }
    }

}

@@ -34,34 +34,8 @@
 s;%0A%0A
-import android.util.Log;%0A%0A
 impo
@@ -320,73 +320,33 @@
 .log
-Exception(throwable);%0A        %7D else if (priority == Log.ERROR) %7B
+(priority, tag, message);
 %0A   
@@ -369,38 +369,34 @@
 tics.log
-(priority, tag, messag
+Exception(throwabl
 e);%0A    

Make CrashlyticsTree correctly log message data when logging Exceptions