change log level to info for prod, add info statement on player join
This commit is contained in:
parent
ed0de7e81f
commit
8a5a2f358c
@ -1,7 +1,7 @@
|
|||||||
import Config
|
import Config
|
||||||
|
|
||||||
config :logger,
|
config :logger,
|
||||||
level: :warning,
|
level: :info,
|
||||||
truncate: 4096
|
truncate: 4096
|
||||||
|
|
||||||
config :chessh, RateLimits,
|
config :chessh, RateLimits,
|
||||||
|
@ -55,6 +55,8 @@ defmodule Chessh.DiscordNotifier do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp send_notification({:player_joined, game_id}) do
|
defp send_notification({:player_joined, game_id}) do
|
||||||
|
Logger.info("Player joined in #{game_id}")
|
||||||
|
|
||||||
case Repo.get(Game, game_id) |> Repo.preload([:dark_player, :light_player]) do
|
case Repo.get(Game, game_id) |> Repo.preload([:dark_player, :light_player]) do
|
||||||
%Game{
|
%Game{
|
||||||
status: :continue,
|
status: :continue,
|
||||||
|
Loading…
Reference in New Issue
Block a user