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:
parent
b2339e2c16
commit
80e4cb852e
2 changed files with 11 additions and 1 deletions
5
.changeset/healthy-zoos-lie.md
Normal file
5
.changeset/healthy-zoos-lie.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/store': patch
|
||||
---
|
||||
|
||||
chore: add info to log when local storage is used
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue