Feat/error logs (#16)

* added list of tasks to achieve

* update deps

* update elixir version in CI/CD pipeline

* update todo with branch push checks

* underscores separation of large numbers

* update elixir version and deps

* add basic module  docs

* remove IO.inspect call

* check if list is empty rather than traversing list for length

* revert empty list code

* duration tests

* add mime type tests

* use logger instread of inspect, remove todos

* replace list length check with Enum.empty

* replace list length check with !Enum.empty?

* numbers readability fix by using underscores on large numbers

* iucn parser replaced case with multiclause function and added test

* replace map and join with map_join

* fix multiple spec issues where map() must be inside a list
This commit is contained in:
2025-12-06 23:41:59 +01:00
committed by GitHub
parent 3d3059e77f
commit 02372f2076
27 changed files with 241 additions and 45 deletions
+3
View File
@@ -1,4 +1,7 @@
defmodule PlantIdDiscordBot.Metrics.Message do
@moduledoc """
Metrics messaging.
"""
def send() do
PlantIdDiscordBot.Metrics.requests()
|> format_message()
+3
View File
@@ -1,4 +1,7 @@
defmodule PlantIdDiscordBot.Metrics.Requests do
@moduledoc """
Basic metrics with usage count per guild.
"""
use Agent
alias PlantIdDiscordBot.Metrics.Requests
alias PlantIdDiscordBot.ProcessRegistry