Skip to content

Create pnpm-debug.log file on fail#343

Merged
zkochan merged 3 commits into
masterfrom
issue336
Sep 3, 2016
Merged

Create pnpm-debug.log file on fail#343
zkochan merged 3 commits into
masterfrom
issue336

Conversation

@zkochan

@zkochan zkochan commented Sep 1, 2016

Copy link
Copy Markdown
Member

I created a custom logger for this feature (please review it as well @zkochan/logger). If it is fine, I'll transfer it to the pnpm organization.

The main idea is to use a logger which emits events with the logging info. The file logger records all the different logging levels. The progress logger listens only the progress type.

Also I substituted the debug usages with @zkochan/logger usages. But I did not remove debug, it listens now for debug logging events.

Example output: https://gist.github.com/zkochan/272e4c60eb3248373c63af9bc2db8924

@zkochan

zkochan commented Sep 3, 2016

Copy link
Copy Markdown
Member Author

I am merging it because I have to create a new pull request based on these changes.

But I'll be more then happy to make updates if someone will have comments.

@zkochan zkochan merged commit e1abc46 into master Sep 3, 2016
@zkochan zkochan deleted the issue336 branch September 3, 2016 22:19
@iamstarkov

Copy link
Copy Markdown
Contributor

Looks good

@iamstarkov

Copy link
Copy Markdown
Contributor

Just one question: why do we log only progress events?

@zkochan

zkochan commented Sep 4, 2016

Copy link
Copy Markdown
Member Author

We don't log progress events. They are not useful.

@zkochan

zkochan commented Sep 4, 2016

Copy link
Copy Markdown
Member Author

I mean the progress events that log download percentage

@iamstarkov

Copy link
Copy Markdown
Contributor

ok, got it. thanks

KSXGitHub pushed a commit that referenced this pull request May 18, 2026
The "begrudging use behind pnpm/pacquet#343" phrasing reads as though
#343 introduced the direct env reads in default_store_dir /
default_modules_dir / default_virtual_store_dir. It did not — those
helpers have read process state since they existed; #343 tracks
retiring the env-mutating *tests* for them. The historical reference
doesn't carry any rule the reader needs, so drop it and let the
positive guidance stand on its own.

https://claude.ai/code/session_01Btd6rp2MgfXb3ArHwSJpqA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants