Skip to content

Commit a62ea90

Browse files
author
Benjamin Pasero
authored
build - enable ELECTRON_ENABLE_LOGGING again on Linux (microsoft#80192)
1 parent facfdbc commit a62ea90

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

scripts/code.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ set -e
55
if [[ "$OSTYPE" == "darwin"* ]]; then
66
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
77
ROOT=$(dirname "$(dirname "$(realpath "$0")")")
8-
9-
# On Linux with Electron 2.0.x running out of a VM causes
10-
# a freeze so we only enable this flag on macOS
11-
export ELECTRON_ENABLE_LOGGING=1
128
else
139
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
1410
if grep -qi Microsoft /proc/version; then
@@ -50,6 +46,7 @@ function code() {
5046
export VSCODE_DEV=1
5147
export VSCODE_CLI=1
5248
export ELECTRON_ENABLE_STACK_DUMPING=1
49+
export ELECTRON_ENABLE_LOGGING=1
5350

5451
# Launch Code
5552
exec "$CODE" . "$@"

scripts/test.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ node build\lib\electron.js
1616
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
1717

1818
:: Run tests
19+
set ELECTRON_ENABLE_LOGGING=1
1920
%CODE% .\test\electron\index.js %*
2021

2122
popd

scripts/test.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
if [[ "$OSTYPE" == "darwin"* ]]; then
55
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
66
ROOT=$(dirname $(dirname $(realpath "$0")))
7-
8-
# On Linux with Electron 2.0.x running out of a VM causes
9-
# a freeze so we only enable this flag on macOS
10-
export ELECTRON_ENABLE_LOGGING=1
117
else
128
ROOT=$(dirname $(dirname $(readlink -f $0)))
139
fi
@@ -31,10 +27,12 @@ node build/lib/electron.js || ./node_modules/.bin/gulp electron
3127
# Unit Tests
3228
if [[ "$OSTYPE" == "darwin"* ]]; then
3329
cd $ROOT ; ulimit -n 4096 ; \
30+
ELECTRON_ENABLE_LOGGING=1 \
3431
"$CODE" \
3532
test/electron/index.js "$@"
3633
else
3734
cd $ROOT ; \
35+
ELECTRON_ENABLE_LOGGING=1 \
3836
"$CODE" \
3937
test/electron/index.js "$@"
4038
fi

0 commit comments

Comments
 (0)