defmodule Hound.JsonDriver.ResponseParserUtils do
  def is_error?(value) do
    is_map(value) && Map.has_key?(value, "message")
  end


  def is_warning?(value) do
    if is_map(value) && Map.has_key?(value, "message") do
      Regex.match?(~r/#{Regex.escape("not clickable")}/, value["message"])
    else
      false
    end
  end


  def warn(message) do
    IO.puts "WARNING: #{message}"
  end
end

defmodule Hound.JsonDriver.ResponseParserUtils do
  import Logger

  def is_error?(value) do
    is_map(value) && Map.has_key?(value, "message")
  end


  def is_warning?(value) do
    if is_map(value) && Map.has_key?(value, "message") do
      Regex.match?(~r/#{Regex.escape("not clickable")}/, value["message"])
    else
      false
    end
  end


  def warn(message) do
    Logger.warn message
  end
end

Use Logger to output warnings
Use Logger to output warnings

manukall/hound,manukall/hound,esbullington/hound,lowks/hound,lowks/hound,HashNuke/hound,oivoodoo/hound,jontonsoup/hound,esbullington/hound,HashNuke/hound,jontonsoup/hound,oivoodoo/hound