Skip to content

Commit

Permalink
Consistent logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 16, 2023
1 parent f723fab commit 2e990ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion offline/offline.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ namespace $ {
caches.delete( '$mol_offline' )

;( self as any ).clients.claim()
console.info( '$mol_offline activated' )

$$.$mol_log3_done({
place: '$mol_offline',
message: 'Activated',
})

} )

Expand Down
2 changes: 1 addition & 1 deletion storage/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace $ {

setTimeout( ()=> this.persisted( actual, 'cache' ), 5000 )

if( actual ) this.$.$mol_log3_rise({ place: `$mol_storage`, message: `Persist: Yes` })
if( actual ) this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` })
else this.$.$mol_log3_fail({ place: `$mol_storage`, message: `Persist: No` })

} )
Expand Down

0 comments on commit 2e990ae

Please sign in to comment.