Skip to content

Commit

Permalink
Document StateMachineTranslator as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Apr 19, 2024
1 parent a82e9f4 commit a580e6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ defmodule Nostrum.Mixfile do
],
Utilities: [
~r/Nostrum.(Snowflake|Token|Util)/,
~r/^Nostrum\.StateMachineTranslator$/
],
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 a580e6f

Please # to comment.