Skip to content

Commit

Permalink
logging for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Forberg committed Feb 19, 2024
1 parent bb3f630 commit 8f7f061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/app/common/get-jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ module.exports = async function getJsonLd(resourceUri, template, formatting) {

var result = JSON.parse(await rp(options));

console.log(formatting);
console.log(process.env.DATABUS_CONTEXT_URL);

if (formatting == undefined || formatting == 'compacted' || formatting == 'compact') {
// Single out jsonld in order to compact the result with the databus context
var result = await jsonld.compact(result, defaultContext);
Expand All @@ -46,6 +49,7 @@ module.exports = async function getJsonLd(resourceUri, template, formatting) {
var result = await jsonld.flatten(result);
}

console.log(result);
return result;
} catch (err) {
console.log(err);
Expand Down

0 comments on commit 8f7f061

Please sign in to comment.