Skip to content

Commit

Permalink
Re-enable console.log via ELECTRON_ENABLE_LOGGING
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjo committed Nov 18, 2015
1 parent a8147c0 commit ae09d68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ if [ $REDIRECT_STDERR ]; then
exec 2> /dev/null
fi

if [ $EXPECT_OUTPUT ]; then
export ELECTRON_ENABLE_LOGGING=1
fi

if [ $OS == 'Mac' ]; then
if [ -n "$BETA_VERSION" ]; then
ATOM_APP_NAME="Atom Beta.app"
Expand Down
1 change: 1 addition & 0 deletions resources/win/atom.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ FOR %%a IN (%*) DO (
)

IF "%EXPECT_OUTPUT%"=="YES" (
SET ELECTRON_ENABLE_LOGGING=YES
"%~dp0\..\..\atom.exe" %*
) ELSE (
"%~dp0\..\app\apm\bin\node.exe" "%~dp0\atom.js" %*
Expand Down
1 change: 1 addition & 0 deletions resources/win/atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ done
directory=$(dirname "$0")

if [ $EXPECT_OUTPUT ]; then
export ELECTRON_ENABLE_LOGGING=1
"$directory/../../atom.exe" "$@"
else
"$directory/../app/apm/bin/node.exe" "$directory/atom.js" "$@"
Expand Down

0 comments on commit ae09d68

Please sign in to comment.