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);
        }
    }

}

@@ -21,16 +21,42 @@
 droid;%0A%0A
+import android.util.Log;%0A%0A
 import c
@@ -176,16 +176,17 @@
     if (
+!
 BuildHel
@@ -233,26 +233,32 @@
     
-e.printStackTrace(
+Log.e(%22Error%22, %22oops%22, e
 );%0A 

Fix logic error on logging to crashlytics