mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Add more console logging for cache storage code
This commit is contained in:
parent
1ce845b2dc
commit
e891465775
@ -59,7 +59,7 @@ const hasOwnProperty = (o, p) =>
|
||||
const cacheStorage = (( ) => {
|
||||
|
||||
const exGet = async (api, wanted, outbin) => {
|
||||
ubolog('cacheStorage:', api.name || 'storage.local', wanted.join());
|
||||
ubolog('cacheStorage.get:', api.name || 'storage.local', wanted.join());
|
||||
const missing = [];
|
||||
for ( const key of wanted ) {
|
||||
if ( pendingWrite.has(key) ) {
|
||||
@ -149,6 +149,7 @@ const cacheStorage = (( ) => {
|
||||
async set(rawbin) {
|
||||
const keys = Object.keys(rawbin);
|
||||
if ( keys.length === 0 ) { return; }
|
||||
ubolog('cacheStorage.set:', keys.join());
|
||||
for ( const key of keys ) {
|
||||
pendingWrite.set(key, rawbin[key]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user