diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-03-04 16:57:07 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-03-04 17:25:17 +0100 |
commit | 4970930c2f866133c38fa73800f1a963f0856692 (patch) | |
tree | 5cb1f7aaa317b02dbc266a62e07c21b05340b106 /common | |
parent | 7fdb3e8474488de2b18da7e9b63719bb05961819 (diff) | |
download | browser-extension-4970930c2f866133c38fa73800f1a963f0856692.tar.gz browser-extension-4970930c2f866133c38fa73800f1a963f0856692.zip |
prepend all generated console messages with 'Haketilo:'
Diffstat (limited to 'common')
-rw-r--r-- | common/indexeddb.js | 2 | ||||
-rw-r--r-- | common/patterns.js | 2 | ||||
-rw-r--r-- | common/policy.js | 2 |
3 files changed, 3 insertions, 3 deletions
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"}; } |