From 5625a4d5b68780f3f33d8314cc6aef1a5862b199 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 17 Dec 2020 14:41:41 -0600 Subject: [PATCH] Log errors --- src/lytedev/http_server.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lytedev/http_server.ex b/src/lytedev/http_server.ex index 75fcfe7..77a4afb 100644 --- a/src/lytedev/http_server.ex +++ b/src/lytedev/http_server.ex @@ -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