Skip to content

Commit

Permalink
Add more console logging for cache storage code
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 3, 2024
1 parent 1ce845b commit e891465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/cachestorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) {
Expand Down Expand Up @@ -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]);
}
Expand Down

0 comments on commit e891465

Please sign in to comment.