Storage/getItemsState: Warn if not ready, log on success as well
This commit is contained in:
parent
6c9848efcd
commit
6dd2b73855
1 changed files with 6 additions and 0 deletions
|
@ -122,6 +122,12 @@ export class Storage implements StorageInterface {
|
|||
}
|
||||
|
||||
public getItemsState(): Partial<Access> {
|
||||
if (!this.ready) {
|
||||
log.warn('Called getItemsState before storage is ready');
|
||||
}
|
||||
|
||||
log.info('Storage/getItemsState: now preparing copy of items...');
|
||||
|
||||
const state = Object.create(null);
|
||||
|
||||
// TypeScript isn't smart enough to figure out the types automatically.
|
||||
|
|
Loading…
Reference in a new issue