-
Notifications
You must be signed in to change notification settings - Fork 3k
error-handler: put npm-debug.log in cache folder #11439
Conversation
c7ad1ce to
68c5992
Compare
|
@kenany My main concern here is that it not fill up user's hard disks. This is particularly a concern for CI environments that could have hundreds of failing runs a day. To land this, I'd like to see some mechanism that limits the number of logs kept in that directory to something reasonable (say, 10). This could be achieved by, if 10 or more logs exist at startup, removing the oldest until only 9 remain. Doing this at startup means that we don't have to worry about trying to do a bunch of things in the midst of an exit handler. |
|
Something kidof related that would also help a |
68c5992 to
f02c986
Compare
|
Added Just needs a test now. |
|
Yeah, this seems otherwise ready. I'm going to see if I can't get tests written for it. (Note from work in progress: I did end up tweaking the filename to be a bit more human readable.) |
|
I fixed a bug (the reported log file name was incorrect) and added a test, so this'll land this week! |
|
And it's merged into |
This is, like, the fourth PR to implement this.
I see more and more users now attaching their
npm-debug.logs to issues as.docx,.pdf, and.zip. Frankly I don't want to have to download any of these just to see someone's error log. I would like to see more users upload their logs togist.github.cominstead.npm reportwill help a lot with this, so I would like to get this prerequisite landed.