Skip to content

Commit 65d301c

Browse files
markizmvz
authored andcommitted
Redirect STDERR to /dev/null during eager_preload
1 parent 926ee7d commit 65d301c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/spring/application.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ def preload
129129
end
130130

131131
def eager_preload
132-
with_pty { preload }
132+
with_pty do
133+
# we can't see stderr and there could be issues when it's overflown
134+
# see https://github.com/rails/spring/issues/396
135+
STDERR.reopen("/dev/null")
136+
preload
137+
end
133138
end
134139

135140
def run

0 commit comments

Comments
 (0)