Skip to content

Debugging

Preston edited this page Oct 30, 2019 · 2 revisions

The marklogic-geo-data-services is a very complex combination of TDE, Optic Pipelines, Search, GeoJSON transformation, performance modeling, and REST all through configuration. This complex set of capabilities can be hard to follow, so we tried to add robust debugging that can be turned toggled when debugging configuration.

To see the logging, enable the KOOP-DEBUG diagnostic event for the group and check your application's ErrorLog.

Example Output

2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting post
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting getData
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Method 'query'
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting query
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] getting objects for geojson.features
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting getObjects
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] getLayerModel(GeoLocation, 3)
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting getLayerModel
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Starting getServiceModel
2019-10-28 08:32:37.793 Info: [Event:id=KOOP-DEBUG] Searching for Service Model: GeoLocation
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Found service: GeoLocation
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Starting parseOrderByFields
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Starting parseGeometry
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Starting convertEnvelopePolygon
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Starting splitBox
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Starting parseRegionOperation
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Using the following extractor: getPointQuery
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] getPointQuery geometry format: mcgm
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] Using the following extractor: getRegionQuery
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] In getRegionQuery
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] geometry
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] {"type":"Point", "format":"mcgm", "coordinateSystem":"wgs84"}
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] In getRegionQuery else
2019-10-28 08:32:37.794 Info: [Event:id=KOOP-DEBUG] regionPaths:
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] ["cts.geospatialRegionPathReference(\"/envelope/ctsRegion\",[\"coordinate-system=wgs84\"])"]
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] operation:
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] intersects
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] regions:
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] ["[-4.5654736, 38.847656, 48.224673, 126.5625]"]
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] regionOptions:
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] []
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] RegionQuery: "{\"geospatialRegionQuery\":{\"geospatialRegionPathReference\":[{\"pathExpression\":\"/envelope/ctsRegion\", \"coordinateSystem\":\"wgs84\"}], \"operation\":\"intersects\", \"region\":[\"[-4.5654736, 38.847656, 48.224673, 126.5625]\"]}}"
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] geometry: cts.orQuery([cts.elementAttributePairGeospatialQuery(fn.QName("","Dot"), fn.QName("","Latitude"), fn.QName("","Longitude"), cts.box("[-4.5654736, 38.847656, 48.224673, 126.5625]"), ["coordinate-system=wgs84"], 1), cts.geospatialRegionQuery([cts.geospatialRegionPathReference("/envelope/ctsRegion",["coordinate-system=wgs84"])], "intersects", cts.box("[-4.5654736, 38.847656, 48.224673, 126.5625]"), [], 1)], [])
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Starting parseWhere
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] where: op.eq(1,1)
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Starting parseOutFields
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] geometrySource = undefined
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] returnGeometry = true
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] elementValueQuery
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Starting parseObjectIds
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] whereQuery: op.eq(1,1)
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] boundingQuery: {"andQuery":{"queries":[{"orQuery":{"queries":[{"elementAttributePairGeospatialQuery":{"element":["Dot"], "latitudeAttribute":["Latitude"], "longitudeAttribute":["Longitude"], "region":["[-4.5654736, 38.847656, 48.224673, 126.5625]"], "options":["coordinate-system=wgs84"]}}, {"geospatialRegionQuery":{"geospatialRegionPathReference":[{"pathExpression":"/envelope/ctsRegion", "coordinateSystem":"wgs84"}], "operation":"intersects", "region":["[-4.5654736, 38.847656, 48.224673, 126.5625]"]}}]}}, {"elementValueQuery":{"element":["type"], "text":["mcgm"], "options":["lang=en"]}}]}}
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] offset: 0
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Setting to limit to MAX_RECORD_COUNT
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] limit: 5000
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] layerModel.dataSources is undefined
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Starting generateFieldDescriptors
2019-10-28 08:32:37.795 Info: [Event:id=KOOP-DEBUG] Starting generateFieldDescriptorsFromViewAndJoins
Clone this wiki locally