0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: add info to log when local storage is used (#4948)

This commit is contained in:
Marc Bernard 2024-11-16 05:26:27 -05:00 committed by GitHub
parent b2339e2c16
commit 80e4cb852e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@verdaccio/store': patch
---
chore: add info to log when local storage is used

View file

@ -60,7 +60,12 @@ class LocalStorage {
if (_.isNil(Storage)) {
assert(this.config.storage, 'CONFIG: storage path not defined');
debug('no custom storage found, loading default storage @verdaccio/local-storage');
return new LocalDatabase(config, logger);
const localStorage = new LocalDatabase(config, logger);
logger.info(
{ pluginCategory: PLUGIN_CATEGORY.STORAGE },
'plugin @verdaccio/local-storage successfully loaded (@{pluginCategory})'
);
return localStorage;
}
return Storage as PluginStorage;
}