Erlang compile script logs to stderr
#!/usr/bin/env escript
% TODO: Don't concurrently print warnings and errors
-% TODO: Some tests
+% TODO: Unit tests perhaps.
-record(arguments, {lib = "./", out = "./", modules = []}).
@@ -76,6 +76,6 @@ configure_logging() ->
log(Term) ->
case persistent_term:get(gleam_logging_enabled) of
- true -> erlang:display(Term), ok;
+ true -> io:format(standard_error, "~p~n", [Term]);
false -> ok
end.
