diff --git a/lib/dotcom_web/plugs/debug.ex b/lib/dotcom_web/plugs/debug.ex deleted file mode 100644 index fbe5f37eb2..0000000000 --- a/lib/dotcom_web/plugs/debug.ex +++ /dev/null @@ -1,21 +0,0 @@ -defmodule DotcomWeb.Plugs.Debug do - @moduledoc """ - Filters alerts by timeframe. Used by pages that list alerts - and have a timeframe filter: - - - /alerts - - /schedules/ROUTE/alerts - - /stops/STOP/alerts - """ - require Logger - - use Plug.Builder - - @pipeline Application.compile_env(:dotcom, :secure_pipeline)[:force_ssl] - - @impl Plug - def call(conn, _) do - Logger.info("#{IO.inspect(@pipeline)} SOMETHING ************** ELSE") - conn - end -end diff --git a/lib/dotcom_web/router.ex b/lib/dotcom_web/router.ex index 9a691986e9..f7f33cf989 100644 --- a/lib/dotcom_web/router.ex +++ b/lib/dotcom_web/router.ex @@ -1,6 +1,5 @@ defmodule DotcomWeb.Router do @moduledoc false - require Logger use DotcomWeb, :router use Plug.ErrorHandler @@ -9,18 +8,8 @@ defmodule DotcomWeb.Router do alias DotcomWeb.StaticPage pipeline :secure do - IO.inspect("SECURE PIPELINE &&&&&&&&&&&&&&&&&&&&&&&") - Logger.info("THIS IS THE SECURE PIPE ################") - - plug(DotcomWeb.Plugs.Debug) - if force_ssl = Application.compile_env(:dotcom, :secure_pipeline)[:force_ssl] do - Logger.info("Force SSL is Called") - - plug(Plug.SSL, - host: nil, - rewrite_on: [:x_forwarded_proto] - ) + plug(Plug.SSL, force_ssl) end end