Skip to content

Commit

Permalink
Merge pull request #541 from Kraigie/state-machine-translator-should-…
Browse files Browse the repository at this point in the history
…be-internal

Document StateMachineTranslator as internal
  • Loading branch information
jchristgit authored Apr 19, 2024
2 parents a82e9f4 + 121049c commit 92ab143
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lib/nostrum/state_machine_translator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ defmodule Nostrum.StateMachineTranslator do
@moduledoc """
Translate error reports for `:gen_statem` modules in Elixir.
> ### Internal module {: .info}
>
> This module is intended for exclusive usage inside of nostrum, and is
> documented for completeness and people curious to look behind the covers.
## Reasoning
By default, Elixir will ignore these messages altogether, see [this
ElixirForum
post](https://elixirforum.com/t/why-does-logger-translator-ignore-gen-statem-reports/37418).
Expand Down
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ defmodule Nostrum.Mixfile do
~r/Nostrum.Constants/
],
Utilities: [
~r/Nostrum.(Snowflake|Token|Util)/,
~r/^Nostrum\.StateMachineTranslator$/
~r/Nostrum.(Snowflake|Token|Util)/
],
Stores: [
~r/Nostrum.Store.\w+$/
Expand All @@ -112,7 +111,8 @@ defmodule Nostrum.Mixfile do
],
"Internal modules": [
~r/Nostrum.Api.Ratelimiter/,
~r/Nostrum.Shard/
~r/Nostrum.Shard/,
~r/^Nostrum\.StateMachineTranslator$/
]
]
end
Expand Down

0 comments on commit 92ab143

Please # to comment.