Skip to content

Commit

Permalink
reworked error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Dec 3, 2023
1 parent cc4aa64 commit c62c342
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ async function clear_cache({ debug_level = 0 } = {}) {
}

async function create_tile(params) {
const { debug_level } = params;
try {
// console.log("INSIDE WORKER, STARTING create_tile")
const { debug_level, url } = params;
const { url } = params;
if (debug_level >= 1) console.log("[geotiff-tile-web-worker/worker.mjs:_create_tile] creating tile from " + url);

if (lru.has(url)) {
Expand Down Expand Up @@ -69,7 +70,7 @@ async function create_tile(params) {

return result;
} catch (error) {
if (debug_level >= 1) console.error(error);
console.error(error);
throw error;
}
}
Expand Down

0 comments on commit c62c342

Please sign in to comment.