diff --git a/src/module-rebuilder.ts b/src/module-rebuilder.ts index 8a86937f..f8057eb0 100644 --- a/src/module-rebuilder.ts +++ b/src/module-rebuilder.ts @@ -88,9 +88,7 @@ export class ModuleRebuilder { '--build-from-source' ]; - if (process.env.DEBUG) { - args.push('--verbose'); - } + args.push(`--loglevel=${debug.enabled('electron-rebuild') ? 'verbose' : 'silent'}`) if (this.rebuilder.debug) { args.push('--debug');