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... // first to run...
['start.pre', ['start.pre',
function(){ function(){
this.logger && this.logger.emit('loaded', 'config') this.logger && this.logger
.push('Startup')
.emit('loaded', 'config')
this this
.loadStoredConfig() .loadStoredConfig()
.toggleAutoStoreConfig('on') .toggleAutoStoreConfig('on')
}], }],
['stop.pre', ['stop.pre',
function(){ function(){
this.logger && this.logger.emit('stored', 'config') this.logger && this.logger
.push('Shutdown')
.emit('stored', 'config')
this this
.storeConfig() .storeConfig()
.toggleAutoStoreConfig('off') .toggleAutoStoreConfig('off')