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

Droth 3297 improve logging #2026

Merged
merged 7 commits into from
Jun 22, 2022

Conversation

anttiahopeltositowise
Copy link
Contributor

Lisätty lokituksiin linkkien määrät, lisätty tarkempaa lokitusta kääntymisrajoitukset ja joukkoliikenteen pysäkit tietolajeille

"floating" -> stop.floating,
"linkSource" -> stop.linkSource.value,
"propertyData" -> stop.propertyData)
val bbox = LogUtils.time(logger, "TEST LOG massTransitStops construct bbox"){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kannattaako nyt tätä operaatiota oikein logitaa, ei taida olla hirveen oleelinen samoin toi validate boudingbox mut ei tää nyt varmaan haitta.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lähinnä menin sillä periaatteella, että "ei jätetä mitään kiveä kääntämättä". Todennäköisesti turhaa lokittaa tätä mutta ei haittaakaan

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

joo eipä se pahaa tee

@@ -1340,7 +1340,7 @@ class RoadLinkService(val vvhClient: VVHClient, val eventbus: DigiroadEventBus,

def enrichRoadLinksFromVVH(allVvhRoadLinks: Seq[VVHRoadlink]): Seq[RoadLink] = {
val vvhRoadLinks = allVvhRoadLinks.filterNot(_.featureClass == FeatureClass.WinterRoads)
LogUtils.time(logger,"TEST LOG roadLinkDataByLinkId"){getRoadLinkDataByLinkIds(vvhRoadLinks)}
LogUtils.time(logger,"TEST LOG roadLinkDataByLinkId, link count: " + vvhRoadLinks.size){getRoadLinkDataByLinkIds(vvhRoadLinks)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TEST LOG roadLinkDataByLinkId -> TEST LOG enrich roadLinkDataByLinkId vaikkapa

@@ -462,7 +462,7 @@ class RoadLinkService(val vvhClient: VVHClient, val eventbus: DigiroadEventBus,
Await.result(vvhClient.roadLinkChangeInfo.fetchByBoundsAndMunicipalitiesF(bounds, municipalities).zip(vvhClient.roadLinkData.fetchByMunicipalitiesAndBoundsF(bounds, municipalities)), atMost = Duration.Inf)
)
withDynTransaction {
LogUtils.time(logger, "TEST LOG enrichRoadLinksFromVVH")(
LogUtils.time(logger, "TEST LOG enrichRoadLinksFromVVH, link count: " + links.size)(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TEST LOG enrichRoadLinksFromVVH from boundingbox request

@@ -64,8 +65,12 @@ class ManoeuvreService(roadLinkService: RoadLinkService, eventBus: DigiroadEvent
}

def getByBoundingBox(bounds: BoundingRectangle, municipalities: Set[Int]): Seq[Manoeuvre] = {
val roadLinks = roadLinkService.getRoadLinksFromVVH(bounds)
getByRoadLinks(roadLinks)
val roadLinks = LogUtils.time(logger, "TEST LOG manoeuvres get roadlinks by bbox") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

varmaan yhtenäisempää käyttää boundingbox sanaa kuin bbox, helpottaa filterointia kun vaan yksi formaatti

Copy link
Contributor

@sasuolanderSito sasuolanderSito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saisko noi http kutsun paramatret jotenkin talteen jotta voisi toistaa kutsun myöhemmin

Copy link
Contributor

@sasuolanderSito sasuolanderSito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vähän muoto hommia vois katsoa mut muuten ok

@anttiahopeltositowise anttiahopeltositowise merged commit 795e842 into development Jun 22, 2022
@anttiahopeltositowise anttiahopeltositowise deleted the DROTH-3297_improve_logging branch December 7, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants