Storage/getItemsState: Warn if not ready, log on success as well
This commit is contained in:
parent
6c9848efcd
commit
6dd2b73855
|
@ -122,6 +122,12 @@ export class Storage implements StorageInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getItemsState(): Partial<Access> {
|
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);
|
const state = Object.create(null);
|
||||||
|
|
||||||
// TypeScript isn't smart enough to figure out the types automatically.
|
// TypeScript isn't smart enough to figure out the types automatically.
|
||||||
|
|
Loading…
Reference in New Issue