change log level to info for prod, add info statement on player join

This commit is contained in:
Elizabeth Hunt 2023-05-06 11:00:06 -07:00
parent ed0de7e81f
commit 8a5a2f358c
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import Config
config :logger,
level: :warning,
level: :info,
truncate: 4096
config :chessh, RateLimits,

View File

@ -55,6 +55,8 @@ defmodule Chessh.DiscordNotifier do
end
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
%Game{
status: :continue,