diff --git a/compiled_starters/elixir/lib/main.ex b/compiled_starters/elixir/lib/main.ex index 0df1adf..ae054a8 100644 --- a/compiled_starters/elixir/lib/main.ex +++ b/compiled_starters/elixir/lib/main.ex @@ -4,7 +4,7 @@ defmodule CLI do case args do ["tokenize", filename] -> # You can use print statements as follows for debugging, they'll be visible when running tests. - IO.puts("Logs from your program will appear here!") + IO.puts(:stderr, "Logs from your program will appear here!") case File.read(filename) do {:ok, file_contents} -> diff --git a/solutions/elixir/01-ry8/diff/lib/main.ex.diff b/solutions/elixir/01-ry8/diff/lib/main.ex.diff index a77a1cf..cf643f9 100644 --- a/solutions/elixir/01-ry8/diff/lib/main.ex.diff +++ b/solutions/elixir/01-ry8/diff/lib/main.ex.diff @@ -5,7 +5,7 @@ case args do ["tokenize", filename] -> - # You can use print statements as follows for debugging, they'll be visible when running tests. -- IO.puts("Logs from your program will appear here!") +- IO.puts(:stderr, "Logs from your program will appear here!") - case File.read(filename) do {:ok, file_contents} -> diff --git a/starter_templates/elixir/code/lib/main.ex b/starter_templates/elixir/code/lib/main.ex index 0df1adf..ae054a8 100644 --- a/starter_templates/elixir/code/lib/main.ex +++ b/starter_templates/elixir/code/lib/main.ex @@ -4,7 +4,7 @@ defmodule CLI do case args do ["tokenize", filename] -> # You can use print statements as follows for debugging, they'll be visible when running tests. - IO.puts("Logs from your program will appear here!") + IO.puts(:stderr, "Logs from your program will appear here!") case File.read(filename) do {:ok, file_contents} ->