Skip to content

Commit fbbddbb

Browse files
committed
fix: add first param titles to logs where missing
1 parent badeac2 commit fbbddbb

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

lib/commands/audit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Audit extends ArboristWorkspaceCmd {
9090
)
9191
}
9292

93-
log.verbose('loading installed dependencies')
93+
log.verbose('audit', 'loading installed dependencies')
9494
const Arborist = require('@npmcli/arborist')
9595
const opts = {
9696
...this.npm.flatOptions,

lib/commands/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Cache extends BaseCommand {
132132
try {
133133
entry = await cacache.get(cachePath, key)
134134
} catch (err) {
135-
log.warn(`Not Found: ${key}`)
135+
log.warn('cache', `Not Found: ${key}`)
136136
break
137137
}
138138
output.standard(`Deleted: ${key}`)

workspaces/arborist/lib/shrinkwrap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,8 @@ class Shrinkwrap {
11531153
&& this.originalLockfileVersion !== this.lockfileVersion
11541154
) {
11551155
log.warn(
1156-
`Converting lock file (${relative(process.cwd(), this.filename)}) from v${this.originalLockfileVersion} -> v${this.lockfileVersion}`
1156+
'shrinkwrap',
1157+
`Converting lock file (${relative(process.cwd(), this.filename)}) from v${this.originalLockfileVersion} -> v${this.lockfileVersion}`
11571158
)
11581159
}
11591160

workspaces/config/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ class Config {
585585

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

690690
// set the workspace in the default layer, which allows it to be overridden easily
691691
const { data } = this.data.get('default')
692692
data.workspace = [this.localPrefix]
693693
this.localPrefix = p
694694
this.localPackage = hasPackageJson
695-
log.info(`found workspace root at ${this.localPrefix}`)
695+
log.info('config', `found workspace root at ${this.localPrefix}`)
696696
// we found a root, so we return now
697697
return
698698
}

0 commit comments

Comments
 (0)