added startup reporting...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-05 19:30:04 +03:00
parent a7734d00b4
commit 5f0c4ffcaf

View File

@ -1146,14 +1146,18 @@ module.ConfigLocalStorage = core.ImageGridFeatures.Feature({
// first to run...
['start.pre',
function(){
this.logger && this.logger.emit('loaded', 'config')
this.logger && this.logger
.push('Startup')
.emit('loaded', 'config')
this
.loadStoredConfig()
.toggleAutoStoreConfig('on')
}],
['stop.pre',
function(){
this.logger && this.logger.emit('stored', 'config')
this.logger && this.logger
.push('Shutdown')
.emit('stored', 'config')
this
.storeConfig()
.toggleAutoStoreConfig('off')