Skip to content

Commit

Permalink
use log instead of println
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Feb 25, 2025
1 parent 186170c commit 3206f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions feature/trip-planner/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ kotlin {
dependencies {
implementation(projects.core.appInfo)
implementation(projects.core.di)
implementation(projects.core.log)

implementation(libs.kotlinx.serialization.json)
implementation(libs.ktor.client.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import io.ktor.client.request.get
import io.ktor.http.ParametersBuilder
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import xyz.ksharma.krail.core.log.log
import xyz.ksharma.krail.trip.planner.network.api.model.StopFinderResponse
import xyz.ksharma.krail.trip.planner.network.api.model.StopType
import xyz.ksharma.krail.trip.planner.network.api.model.TripResponse
import xyz.ksharma.krail.trip.planner.network.api.service.stop_finder.StopFinderRequestParams
import xyz.ksharma.krail.trip.planner.network.api.service.trip.TripRequestParams
import kotlin.math.log

class RealTripPlanningService(
private val httpClient: HttpClient,
Expand Down Expand Up @@ -56,11 +56,11 @@ class RealTripPlanningService(
}.body()
}

private inline fun addExcludedTransportModes(
private fun addExcludedTransportModes(
excludeProductClassSet: Set<Int>,
parameters: ParametersBuilder,
) {
println("Exclude - $excludeProductClassSet")
log("Exclude transport mode - $excludeProductClassSet")
parameters.append(TripRequestParams.excludedMeans, "checkbox")

if (excludeProductClassSet.contains(1)) {
Expand Down

0 comments on commit 3206f8d

Please sign in to comment.