Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

필요 없는 로깅 지우기 #435

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import club.staircrusher.stdlib.di.annotation.Component
import club.staircrusher.stdlib.geography.CrsConverter
import club.staircrusher.stdlib.geography.CrsType
import club.staircrusher.stdlib.geography.Location
import mu.KotlinLogging
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.service.annotation.GetExchange
import java.time.LocalDate
Expand All @@ -16,7 +15,6 @@ import java.time.LocalDate
class GovernmentOpenDataService(
private val properties: GovernmentOpenDataProperties,
) : OpenDataService {
private val logger = KotlinLogging.logger {}
private val localDataService = createExternalApiService<LocalDataApiClient>(
baseUrl = "http://www.localdata.go.kr/platform/rest/TO0",
defaultHeadersBlock = {},
Expand All @@ -38,9 +36,6 @@ class GovernmentOpenDataService(
opnSvcId = CAFE_CODE,
)

logger.info("Closed restaurant response: $restaurantResponse")
logger.info("Closed cafe response: $cafeResponse")

val closedRestaurants = restaurantResponse.result.body?.rows?.get(0)?.row?.mapNotNull {
it.toDTO()
} ?: emptyList()
Expand All @@ -49,8 +44,6 @@ class GovernmentOpenDataService(
it.toDTO()
} ?: emptyList()

logger.info { "Closed place candidates from external place: ${closedRestaurants + closedCafe}" }

return closedRestaurants + closedCafe
}

Expand Down