mirror of https://github.com/gorhill/uBlock.git
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 cacheStorage = (( ) => {
|
||||||
|
|
||||||
const exGet = async (api, wanted, outbin) => {
|
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 = [];
|
const missing = [];
|
||||||
for ( const key of wanted ) {
|
for ( const key of wanted ) {
|
||||||
if ( pendingWrite.has(key) ) {
|
if ( pendingWrite.has(key) ) {
|
||||||
|
@ -149,6 +149,7 @@ const cacheStorage = (( ) => {
|
||||||
async set(rawbin) {
|
async set(rawbin) {
|
||||||
const keys = Object.keys(rawbin);
|
const keys = Object.keys(rawbin);
|
||||||
if ( keys.length === 0 ) { return; }
|
if ( keys.length === 0 ) { return; }
|
||||||
|
ubolog('cacheStorage.set:', keys.join());
|
||||||
for ( const key of keys ) {
|
for ( const key of keys ) {
|
||||||
pendingWrite.set(key, rawbin[key]);
|
pendingWrite.set(key, rawbin[key]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue