-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always verbose output. #594
Comments
I created this patch for electron-rebuild's output (options available: verbose, silent, warn, silly)
The downside is that we can't filter the verbosity of |
@mmaietta Thanks for this patch, like you said it doesn't actually fix the issue, but it reduces the verbosity a little bit. It also makes more sense than using I suggest you turn your patch into a pull request :) |
Updating logic to not rely on DEBUG env var, but instead use the debug module to check if electron-rebuild is enabled electron#594
Updating logic to not rely on DEBUG env var, but instead use the debug module to check if electron-rebuild is enabled electron#594
🎉 This issue has been resolved in version 3.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@malept Thanks for merging and releasing this fix 🎉 However, this fix only helps a little bit, actual problem is still there. Webpack build output is still showing lines like this. and there is no way to suppress that output. Should we re-open this issue until a solution is found? |
You're probably not using the latest version of |
we are using Here is how it's used in our code import rebuild from 'electron-rebuild';
await rebuild({
arch,
buildPath: working,
electronVersion: config.electronVersion,
force: true,
debug: argv.electronDebug, // false
}); it's possible that we are doing something wrong of course. |
I was just checking how https://github.com/electron/electron-rebuild/blob/master/src/module-type/node-gyp.ts#L27 this line uses After that change, output is reduced to this I'm investigating where these additional lines are coming from, it could be a bug with |
yes, this is happening because of |
Thanks, I've fixed that in #837.
This sounds like something that needs to be fixed in node-gyp. |
Thanks for prompt reply @malept. I've created local patches for these and will create an issue on node-gyp at one point. |
After upgrading to #400 our build outputs are always verbose now. we use the node api like this.
I tried few things but can't suppress the node-gyp output. I tried setting the log-level to silent through npm env vars, it helps a little but still bunch of logs are printed out.
Any way to make rebuilds quiet? I made sure process.env.DEBUG is not set.
The text was updated successfully, but these errors were encountered: