FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: dont write log file for completion commands by lukekarrys · Pull Request #7497 · npm/cli · GitHub

/ cli Public

fix: dont write log file for completion commands - #7497

Merged
lukekarrys merged 1 commit into
latestfrom
lk/skip-log-file-for-completion
May 9, 2024
Merged

fix: dont write log file for completion commands#7497
lukekarrys merged 1 commit into
latestfrom
lk/skip-log-file-for-completion

Conversation

Copy link
Copy Markdown
Contributor

Since npm completion is implemented by calling npm completion -- arg1
this will write a logfile for that command. I noticed this as I was trying
to look through my logs for a recent command and found that it had been removed
since I used enough tab completions to fill logs-max.

Since npm completion is implemented by calling npm completion -- arg1
this will write a logfile for that command. I noticed this as I was trying
to look through my logs for a recent command and found that it had been removed
since I used enough tab completions to fill logs-max.
lukekarrys requested a review from a team as a code owner May 9, 2024 19:09

Copy link
Copy Markdown
Contributor Author

Here's what a grep of my logs looked like previously:

❯ grep -r "argv" _logs/
_logs//2024-05-09T19_05_19_129Z-debug-0.log:8 verbose argv "completion" "--" "npm" "vi"
_logs//2024-05-09T19_05_18_423Z-debug-0.log:8 verbose argv "completion" "--" ""
_logs//2024-05-09T19_05_20_636Z-debug-0.log:8 verbose argv "completion" "--" "npm" "view" ""
_logs//2024-05-09T19_05_18_304Z-debug-0.log:8 verbose argv "completion"

Comment thread lib/utils/log-file.js
lukekarrys merged commit 6d456bb into latest May 9, 2024
lukekarrys deleted the lk/skip-log-file-for-completion branch May 9, 2024 20:06
github-actions Bot mentioned this pull request May 9, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL