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:
parent
86283342f9
commit
4ac3aead4f
2 changed files with 6 additions and 1 deletions
5
.changeset/pink-balloons-leave.md
Normal file
5
.changeset/pink-balloons-leave.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/local-storage': patch
|
||||
---
|
||||
|
||||
chore: reduce log to info if database is not found
|
|
@ -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}'
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue