1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

Add more console logging for cache storage code

This commit is contained in:
Raymond Hill 2024-05-02 20:15:46 -04:00
parent 1ce845b2dc
commit e891465775
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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]);
}