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
|
||||
|
||||
config :logger,
|
||||
level: :warning,
|
||||
level: :info,
|
||||
truncate: 4096
|
||||
|
||||
config :chessh, RateLimits,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user