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()}.")
|
Logger.info("#{__MODULE__} started listening on port #{port()}.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def handle_event(:request_error, data, args) do
|
||||||
|
Logger.error(inspect({data, args}))
|
||||||
|
end
|
||||||
|
|
||||||
def handle_event(ev, data, args) do
|
def handle_event(ev, data, args) do
|
||||||
Logger.debug(inspect(%{event: ev, data: data, args: args}))
|
Logger.debug(inspect(%{event: ev, data: data, args: args}))
|
||||||
:ok
|
:ok
|
||||||
|
|
Loading…
Reference in a new issue