Skip to content

Commit

Permalink
Log automatic rescan trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed May 2, 2024
1 parent 6b127ae commit 211c0c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/Core/ExtensionManager/ExtensionManagerModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export class ExtensionManagerModule {
extensionManager.populateSearchIndexByExtensionId(extensionId),
);

eventSubscriber.subscribe(
"RescanOrchestrator:timeElapsed",
async () => await extensionManager.populateSearchIndex(),
);
eventSubscriber.subscribe("RescanOrchestrator:timeElapsed", async () => {
logger.info("Automatic rescan triggered");
await extensionManager.populateSearchIndex();
});

eventSubscriber.subscribe("settingUpdated", async ({ key }: { key: string }) => {
for (const extension of extensionRegistry.getAll()) {
Expand Down

0 comments on commit 211c0c9

Please sign in to comment.