Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 5e28404

Browse filesBrowse files
iarnazkat
authored andcommitted
npm: Make --timing set loglevel=timing
PR-URL: #20389 Credit: @iarna Reviewed-By: @zkat
1 parent a17d14e commit 5e28404
Copy full SHA for 5e28404

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/npm.js

Copy file name to clipboardExpand all lines: lib/npm.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,11 @@
290290

291291
var color = config.get('color')
292292

293-
log.level = config.get('loglevel')
293+
if (npm.config.get('timing') && npm.config.get('loglevel') === 'notice') {
294+
log.level = 'timing'
295+
} else {
296+
log.level = config.get('loglevel')
297+
}
294298
log.heading = config.get('heading') || 'npm'
295299
log.stream = config.get('logstream')
296300

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.