Skip to content

Commit

Permalink
Add log message to help debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorRigby committed Oct 31, 2018
1 parent 9cf1b1d commit e0ae228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/nerves_wpa_supplicant/messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# limitations under the License.

defmodule Nerves.WpaSupplicant.Messages do
require Logger

def encode(cmd) when is_atom(cmd) do
to_string(cmd)
end
Expand Down Expand Up @@ -156,6 +158,11 @@ defmodule Nerves.WpaSupplicant.Messages do
|> Map.put(String.to_atom(key), kv_value(String.trim_trailing(value)))

_ ->
Logger.debug([
"Failed to decode response: ",
inspect(resp, limit: :infinity)
])

acc
end
end)
Expand Down

0 comments on commit e0ae228

Please sign in to comment.