Skip to content

Commit

Permalink
Cleaned up debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 6, 2024
1 parent 9b7ad7d commit e8d0774
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
21 changes: 0 additions & 21 deletions lib/dotcom_web/plugs/debug.ex

This file was deleted.

13 changes: 1 addition & 12 deletions lib/dotcom_web/router.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
defmodule DotcomWeb.Router do
@moduledoc false
require Logger

use DotcomWeb, :router
use Plug.ErrorHandler
Expand All @@ -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

Expand Down

0 comments on commit e8d0774

Please sign in to comment.