diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2023-05-06 11:00:06 -0700 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2023-05-06 11:00:09 -0700 |
commit | 8a5a2f358cb1f63a255b2daf6908536583986448 (patch) | |
tree | 89aa11118538f125fcec71472a4fe4d661df784e | |
parent | ed0de7e81feb0981a381ec95272ee0a0278acebd (diff) | |
download | chessh-8a5a2f358cb1f63a255b2daf6908536583986448.tar.gz chessh-8a5a2f358cb1f63a255b2daf6908536583986448.zip |
change log level to info for prod, add info statement on player join
-rw-r--r-- | config/prod.exs | 2 | ||||
-rw-r--r-- | lib/chessh/discord/notifier.ex | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config/prod.exs b/config/prod.exs index bb12243..71275ea 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,7 +1,7 @@ import Config config :logger, - level: :warning, + level: :info, truncate: 4096 config :chessh, RateLimits, diff --git a/lib/chessh/discord/notifier.ex b/lib/chessh/discord/notifier.ex index f4fc4fa..6a20e89 100644 --- a/lib/chessh/discord/notifier.ex +++ b/lib/chessh/discord/notifier.ex @@ -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, |