added log for pulse
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
package com.navi.pulse
|
||||
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import com.navi.pulse.event.PulseEventManager
|
||||
import com.navi.pulse.network.PulseRetrofitProvider
|
||||
|
||||
@@ -35,6 +36,9 @@ object PulseHelper {
|
||||
|
||||
fun trackEvent(eventName: String, properties: Map<String, String>? = null) {
|
||||
if (eventName.isEmpty()) return
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.d("PULSE_EVENT : ", eventName.plus(" ").plus(properties?.toString()))
|
||||
}
|
||||
PulseEventManager.trackEvent(
|
||||
eventName, properties,
|
||||
applicationContext
|
||||
|
||||
Reference in New Issue
Block a user