logging reason for frontend reload

This commit is contained in:
zadam
2023-09-28 23:47:19 +02:00
parent 9767b6269a
commit e5555beea9
4 changed files with 7 additions and 7 deletions

View File

@@ -63,10 +63,10 @@ function load() {
log.info(`Becca (note cache) load took ${Date.now() - start}ms`);
}
function reload() {
function reload(reason) {
load();
require('../services/ws').reloadFrontend();
require('../services/ws').reloadFrontend(reason || "becca reloaded");
}
eventService.subscribeBeccaLoader([eventService.ENTITY_CHANGE_SYNCED], ({entityName, entityRow}) => {