Skip to content

fix: use Atom type for set_primary_config key parameter#47

Merged
dbrattli merged 1 commit intomainfrom
fix/logger-set-primary-config-atom
Mar 28, 2026
Merged

fix: use Atom type for set_primary_config key parameter#47
dbrattli merged 1 commit intomainfrom
fix/logger-set-primary-config-atom

Conversation

@dbrattli
Copy link
Copy Markdown
Collaborator

Summary

  • Changes set_primary_config key parameter from string to Atom in Logger bindings
  • Erlang's logger:set_primary_config/2 expects atoms for both arguments — a string compiles to a binary (<<"level">>) which Erlang silently ignores

Test plan

  • Verify Logger.set_primary_config(atom "level", atom "debug") correctly sets the log level on BEAM

🤖 Generated with Claude Code

Erlang's logger:set_primary_config/2 expects atoms for both key and
value. A string compiles to a binary (<<"level">>) which Erlang
silently ignores.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dbrattli dbrattli merged commit 627e3bc into main Mar 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant