Log errors
This commit is contained in:
parent
d572c237c3
commit
5625a4d5b6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue