Skip to content

Commit c52a4bc

Browse files
committed
Add some debug output
1 parent bca2a99 commit c52a4bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ldf-client-worker.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const workerToWindowHandler = new WorkerToWindowHandler(self);
2020

2121
function initEngine(config) {
2222
// Create an engine lazily
23+
console.log("engine");
24+
console.log(engine);
25+
console.log("require('my-comunica-engine')");
26+
console.log(require('my-comunica-engine'));
2327
if (!engine)
2428
engine = new QueryEngineBase(require('my-comunica-engine')());
2529

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

4549
// Create a client to fetch the fragments through HTTP
4650
config.context.log = logger;
51+
console.log("config.query");
52+
console.log(config.query);
53+
console.log("config.context");
54+
console.log(config.context);
4755
engine.query(config.query, config.context)
4856
.then(async function (result) {
57+
console.log("then engine.query");
4958
// Post query metadata
5059
postMessage({ type: 'queryInfo', queryType: result.resultType });
5160

@@ -98,6 +107,7 @@ var handlers = {
98107
}
99108
}
100109
}).catch(postError);
110+
console.log("2 post engine.query");
101111
},
102112

103113
// Stop the execution of the current query

0 commit comments

Comments
 (0)