Skip to content

Commit 06e5186

Browse files
Log this to stderr
Per suggestion from @lukebakken. References #1307. [Finishes #149635897]
1 parent 9d8957b commit 06e5186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ start(normal, []) ->
811811
Args = [OTPRel, ERTSVer, ?OTP_MINIMUM, ?ERTS_MINIMUM],
812812
rabbit_log:error(Msg, Args),
813813
%% also print to stdout to make this more visible
814-
io:format("Error: " ++ Msg ++ "~n", Args),
814+
io:format(standard_error, "Error: " ++ Msg ++ "~n", Args),
815815
{error, {erlang_version_too_old, rabbit_misc:format("Erlang ~s or later is required, started on ~s", [?OTP_MINIMUM, OTPRel])}};
816816
Error ->
817817
Error

0 commit comments

Comments
 (0)