Skip to content

Commit

Permalink
Add some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
simonvbrae committed Nov 8, 2024
1 parent bca2a99 commit c52a4bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ldf-client-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const workerToWindowHandler = new WorkerToWindowHandler(self);

function initEngine(config) {
// Create an engine lazily
console.log("engine");
console.log(engine);
console.log("require('my-comunica-engine')");
console.log(require('my-comunica-engine'));
if (!engine)
engine = new QueryEngineBase(require('my-comunica-engine')());

Expand All @@ -44,8 +48,13 @@ var handlers = {

// Create a client to fetch the fragments through HTTP
config.context.log = logger;
console.log("config.query");
console.log(config.query);
console.log("config.context");
console.log(config.context);
engine.query(config.query, config.context)
.then(async function (result) {
console.log("then engine.query");
// Post query metadata
postMessage({ type: 'queryInfo', queryType: result.resultType });

Expand Down Expand Up @@ -98,6 +107,7 @@ var handlers = {
}
}
}).catch(postError);
console.log("2 post engine.query");
},

// Stop the execution of the current query
Expand Down

0 comments on commit c52a4bc

Please sign in to comment.