From 9012b6ce5c1a4fbe0b9ed17a2277db5c7343aa23 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 5 Mar 2019 20:25:38 -0800 Subject: [PATCH] fix: when idb is blocked, use console.error (#1081) this allows the error to actually be logged in production for better debugging --- src/routes/_database/databaseLifecycle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_database/databaseLifecycle.js b/src/routes/_database/databaseLifecycle.js index 9762b87..1c65372 100644 --- a/src/routes/_database/databaseLifecycle.js +++ b/src/routes/_database/databaseLifecycle.js @@ -12,7 +12,7 @@ function createDatabase (instanceName) { openReqs[instanceName] = req req.onerror = reject req.onblocked = () => { - console.log('idb blocked') + console.error('idb blocked') } req.onupgradeneeded = (e) => { let db = req.result