Remove logging from colorhash
This commit is contained in:
parent
0db3e9be30
commit
f54e50eb11
1 changed files with 0 additions and 2 deletions
|
@ -21,7 +21,6 @@ defmodule Liliform.Colorhash do
|
||||||
"""
|
"""
|
||||||
def hsl(input, raw: true) do
|
def hsl(input, raw: true) do
|
||||||
if Features.enabled?(:colorhash) do
|
if Features.enabled?(:colorhash) do
|
||||||
Logger.debug("Colorhash enabled")
|
|
||||||
input = String.downcase(input) <> @seed
|
input = String.downcase(input) <> @seed
|
||||||
hash = :erlang.phash2(input, 2_147_483_647)
|
hash = :erlang.phash2(input, 2_147_483_647)
|
||||||
|
|
||||||
|
@ -31,7 +30,6 @@ defmodule Liliform.Colorhash do
|
||||||
|
|
||||||
{hue, saturation, lightness}
|
{hue, saturation, lightness}
|
||||||
else
|
else
|
||||||
Logger.debug("Colorhash disabled")
|
|
||||||
@default_color
|
@default_color
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue