Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Fix log colorization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Aug 8, 2014
1 parent 262711c commit a28699d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule ExMake.Logger do

@spec colorize(String.t(), IO.ANSI.ansicode()) :: String.t()
defp colorize(str, color) do
emit = IO.ANSI.enabled?() && Application.get_env(:exmake, :exmake_event_pid) == :undefined && System.get_env("EXMAKE_COLORS") != "0"
emit = IO.ANSI.enabled?() && Application.get_env(:exmake, :exmake_event_pid) == nil && System.get_env("EXMAKE_COLORS") != "0"
IO.ANSI.format([color, :bright, str], emit) |> IO.iodata_to_binary()
end

Expand Down

0 comments on commit a28699d

Please sign in to comment.