From b592219bd33df1c658fe4221b911113b66b582d0 Mon Sep 17 00:00:00 2001 From: Eishun Kondoh Date: Tue, 21 Nov 2017 15:04:45 +0900 Subject: [PATCH] Improved ofp-print --- test/flay.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/flay.ex b/test/flay.ex index 94b5e64..e37c239 100644 --- a/test/flay.ex +++ b/test/flay.ex @@ -70,7 +70,7 @@ defmodule Flay do {:noreply, %{state|reply_to: nil}} end # `Catch all` function is required. - def handle_info(info, state) do + def handle_info(_info, state) do # :ok = warn("[#{__MODULE__}] unhandled message #{inspect(info)}") {:noreply, state} end @@ -83,11 +83,10 @@ defmodule Flay do |> Openflow.to_binary |> binary_to_space_delimited_hex |> ofp_print_cmd - |> IO.inspect + |> Logger.info end defp ofp_print_cmd(print_args) do - IO.inspect("\n") {result, _code} = System.cmd("ovs-ofctl", ["ofp-print", "#{print_args}"]) result end