package com.zulip.android;

import com.crashlytics.android.Crashlytics;

public class ZLog {

    public static void logException(Throwable e) {
        if (BuildHelper.shouldLogToCrashlytics()) {
            e.printStackTrace();
        } else {
            Crashlytics.logException(e);
        }
    }

}

package com.zulip.android;

import android.util.Log;

import com.crashlytics.android.Crashlytics;

public class ZLog {

    public static void logException(Throwable e) {
        if (!BuildHelper.shouldLogToCrashlytics()) {
            Log.e("Error", "oops", e);
        } else {
            Crashlytics.logException(e);
        }
    }

}

Fix logic error on logging to crashlytics
Fix logic error on logging to crashlytics
