Skip to content

refactor: use binary format strings in logger calls#377

Merged
Taure merged 2 commits intonovaframework:masterfrom
Taure:refactor/binary-log-format-strings
Mar 19, 2026
Merged

refactor: use binary format strings in logger calls#377
Taure merged 2 commits intonovaframework:masterfrom
Taure:refactor/binary-log-format-strings

Conversation

@Taure
Copy link
Collaborator

@Taure Taure commented Mar 19, 2026

Summary

  • Replace list string "..." format strings with binary <<"...">> in all logger and ?LOG_* macro calls
  • Ensures log format strings are binaries instead of integer lists
  • 4 files affected: nova.hrl, nova_router.erl, nova_error_controller.erl, nova_plugin_manager.erl

Test plan

  • rebar3 compile passes
  • rebar3 eunit — all 347 tests pass

Replace list string literals ("...") with binary (<<"...">>) in all
logger/LOG_* macro calls for consistent log output.
@Taure Taure requested a review from burbas March 19, 2026 12:51
Copy link
Contributor

@burbas burbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright - just remove the line stated below and I'm happy :)


format_arity([], Acc) ->
logger:warning("Acc: ~p~n", [Acc]),
logger:warning(<<"Acc: ~p~n">>, [Acc]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed

@Taure Taure merged commit ea35d47 into novaframework:master Mar 19, 2026
14 checks passed
@Taure Taure deleted the refactor/binary-log-format-strings branch March 19, 2026 13:42
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.

2 participants