mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: local storage debug messages (#4992)
This commit is contained in:
parent
bb86c5693a
commit
ff78ea6911
2 changed files with 7 additions and 3 deletions
5
.changeset/thirty-comics-trade.md
Normal file
5
.changeset/thirty-comics-trade.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/local-storage': patch
|
||||
---
|
||||
|
||||
chore: local storage debug messages
|
|
@ -170,7 +170,7 @@ export default class LocalFS implements ILocalFSPackageManager {
|
|||
* @param manifest package manifest
|
||||
*/
|
||||
public async createPackage(name: string, manifest: Manifest): Promise<void> {
|
||||
debug('create a a new package %o', name);
|
||||
debug('create a new package %o', name);
|
||||
const pathPackage = this._getStorage(packageJSONFileName);
|
||||
try {
|
||||
// https://nodejs.org/dist/latest-v17.x/docs/api/fs.html#file-system-flags
|
||||
|
@ -325,7 +325,7 @@ export default class LocalFS implements ILocalFSPackageManager {
|
|||
}
|
||||
});
|
||||
readStream.on('error', (error) => {
|
||||
debug('not tarball found %o for %s message %s', pathName, tarballName, error.message);
|
||||
debug('no tarball found %o for %s message %s', pathName, tarballName, error.message);
|
||||
});
|
||||
return readStream;
|
||||
}
|
||||
|
@ -333,7 +333,6 @@ export default class LocalFS implements ILocalFSPackageManager {
|
|||
private async _readStorageFile(name: string): Promise<any> {
|
||||
debug('reading the file: %o', name);
|
||||
try {
|
||||
debug('reading the file: %o', name);
|
||||
return await readFilePromise(name);
|
||||
} catch (err: any) {
|
||||
debug('error reading the file: %o with error %o', name, err.message);
|
||||
|
|
Loading…
Reference in a new issue