0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-11 02:15:57 -05:00

fix: reduce log to info if database is not found (#4595)

This commit is contained in:
Marc Bernard 2024-04-25 16:20:17 +02:00 committed by GitHub
parent 86283342f9
commit 4ac3aead4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@verdaccio/local-storage': patch
---
chore: reduce log to info if database is not found

View file

@ -287,7 +287,7 @@ class LocalDatabase extends pluginUtils.Plugin<{}> implements Storage {
} catch (err: any) {
// readFileSync is platform specific, macOS, Linux and Windows thrown an error
// Only recreate if file not found to prevent data loss
this.logger.warn(
this.logger.info(
{ path: this.path },
'no private database found, recreating new one on @{path}'
);