From 4970930c2f866133c38fa73800f1a963f0856692 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 4 Mar 2022 16:57:07 +0100 Subject: prepend all generated console messages with 'Haketilo:' --- common/indexeddb.js | 2 +- common/patterns.js | 2 +- common/policy.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/indexeddb.js b/common/indexeddb.js index 1c6244b..bd87399 100644 --- a/common/indexeddb.js +++ b/common/indexeddb.js @@ -215,7 +215,7 @@ async function finalize_transaction(context) { for (const uses of Object.values(context.file_uses)) { if (uses.uses < 0) - console.error("internal error: uses < 0 for file " + uses.sha256); + console.error("Haketilo: internal error: uses < 0 for file " + uses.sha256); const is_new = uses.new; const initial_uses = uses.initial; diff --git a/common/patterns.js b/common/patterns.js index 6f5aa40..9e9d387 100644 --- a/common/patterns.js +++ b/common/patterns.js @@ -174,7 +174,7 @@ function* each_url_pattern(url) const deco = deconstruct_url(url); if (deco === undefined) { - console.error("bad url format", url); + console.error("Haketilo: bad url format", url); return false; } diff --git a/common/policy.js b/common/policy.js index 546aeed..47b2d1d 100644 --- a/common/policy.js +++ b/common/policy.js @@ -64,7 +64,7 @@ function decide_policy(patterns_tree, url, default_allow, secret) try { var payloads = pqt.search(patterns_tree, url).next().value; } catch (e) { - console.error(e); + console.error("Haketilo:", e); policy.allow = false; policy.error = {haketilo_error_type: "deciding_policy"}; } -- cgit v1.2.3