Log errors

This commit is contained in:
Daniel Flanagan 2020-12-17 14:41:41 -06:00
parent d572c237c3
commit 5625a4d5b6
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -23,6 +23,10 @@ defmodule Lytedev.HttpServer do
Logger.info("#{__MODULE__} started listening on port #{port()}.")
end
def handle_event(:request_error, data, args) do
Logger.error(inspect({data, args}))
end
def handle_event(ev, data, args) do
Logger.debug(inspect(%{event: ev, data: data, args: args}))
:ok