Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Jul 31, 2024
1 parent 402d418 commit e5e777c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/sync-viewer-layer-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const handler = withServerDefaults(async (event, _) => {
const menuTree = buildMenuTree(formattedMenus)

try {
console.log('syncing viewer layers')
await syncViewerLayers(menuTree, layerData.event_type, viewerLayerId)
}
catch (e) {
Expand Down Expand Up @@ -106,6 +107,8 @@ async function syncViewerLayers(menuTree, eventType, viewerLayerId) {

const geonetworkInstancesArray = Array.from(geonetworkInstances)

console.log('geonetworkInstancesArray: ', geonetworkInstancesArray)

const xml = await fetchViewerLayerXML({ id: viewerLayerId })

// Can occur when no update needs to be done (because there is no factsheet or inspireMetadata)
Expand Down

0 comments on commit e5e777c

Please sign in to comment.