Commit fe7efdbc0970030235e7b5b6309ae4bd7333d174

Thomas de Grivel 2022-02-03T13:03:26

debug discord

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/discord.ex b/lib/discord.ex
index cd4ed03..4a02ca5 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -7,7 +7,6 @@ defmodule Discord do
   end
 
   def error(conn, params) do
-    IO.inspect(conn)
     req_path = conn.request_path
     user = if conn.assigns[:current_user] do
       conn.assigns.current_user.slug.slug
@@ -32,6 +31,7 @@ User : `#{user}`
 Headers :
 ```#{headers}```
 """}
+    IO.inspect(message)
     json = Jason.encode!(message)
     HTTPoison.post(webhook, json, [{"Content-Type", "application/json"}])
   end