Skip to content

Commit

Permalink
fix: add first param titles to logs where missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 15, 2024
1 parent badeac2 commit fbbddbb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Audit extends ArboristWorkspaceCmd {
)
}

log.verbose('loading installed dependencies')
log.verbose('audit', 'loading installed dependencies')
const Arborist = require('@npmcli/arborist')
const opts = {
...this.npm.flatOptions,
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Cache extends BaseCommand {
try {
entry = await cacache.get(cachePath, key)
} catch (err) {
log.warn(`Not Found: ${key}`)
log.warn('cache', `Not Found: ${key}`)
break
}
output.standard(`Deleted: ${key}`)
Expand Down
3 changes: 2 additions & 1 deletion workspaces/arborist/lib/shrinkwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,8 @@ class Shrinkwrap {
&& this.originalLockfileVersion !== this.lockfileVersion
) {
log.warn(
`Converting lock file (${relative(process.cwd(), this.filename)}) from v${this.originalLockfileVersion} -> v${this.lockfileVersion}`
'shrinkwrap',
`Converting lock file (${relative(process.cwd(), this.filename)}) from v${this.originalLockfileVersion} -> v${this.lockfileVersion}`
)
}

Expand Down
6 changes: 3 additions & 3 deletions workspaces/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class Config {

async #loadFile (file, type) {
// only catch the error from readFile, not from the loadObject call
log.silly(`config:load:file:${file}`)
log.silly('config', `load:file:${file}`)
await readFile(file, 'utf8').then(
data => {
const parsedConfig = ini.parse(data)
Expand Down Expand Up @@ -684,15 +684,15 @@ class Config {
if (w === this.localPrefix) {
// see if there's a .npmrc file in the workspace, if so log a warning
if (await fileExists(this.localPrefix, '.npmrc')) {
log.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`)
log.warn('config', `ignoring workspace config at ${this.localPrefix}/.npmrc`)
}

// set the workspace in the default layer, which allows it to be overridden easily
const { data } = this.data.get('default')
data.workspace = [this.localPrefix]
this.localPrefix = p
this.localPackage = hasPackageJson
log.info(`found workspace root at ${this.localPrefix}`)
log.info('config', `found workspace root at ${this.localPrefix}`)
// we found a root, so we return now
return
}
Expand Down

0 comments on commit fbbddbb

Please sign in to comment.