Skip to content

Commit

Permalink
fix: update deprecated metadata key for logger
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-ossai-cko committed Feb 15, 2024
1 parent f0f7da8 commit 54e4a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkout/src/main/java/com/checkout/logging/EventLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.content.Context
import androidx.annotation.VisibleForTesting
import com.checkout.base.model.Environment
import com.checkout.eventlogger.CheckoutEventLogger
import com.checkout.eventlogger.METADATA_CORRELATION_ID
import com.checkout.eventlogger.domain.model.MetadataKey
import com.checkout.eventlogger.domain.model.RemoteProcessorMetadata
import com.checkout.logging.model.LoggingEvent
import com.checkout.logging.utils.toLoggingEnvironment
Expand Down Expand Up @@ -37,7 +37,7 @@ internal class EventLogger(private val logger: CheckoutEventLogger) : Logger<Log

override fun resetSession() {
val correlationId = UUID.randomUUID().toString()
logger.addMetadata(METADATA_CORRELATION_ID, correlationId)
logger.addMetadata(MetadataKey.correlationId, correlationId)
sentLogs.clear()
}

Expand Down

0 comments on commit 54e4a0b

Please sign in to comment.