Skip to content

chore(lua): migrate logger:fun calls to ?LOG_* macros#45

Merged
Taure merged 1 commit into
mainfrom
chore/logger-macros-sweep
May 14, 2026
Merged

chore(lua): migrate logger:fun calls to ?LOG_* macros#45
Taure merged 1 commit into
mainfrom
chore/logger-macros-sweep

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented May 14, 2026

Summary

  • 20 `logger:error/warning/notice` function calls across `asobi_lua_match`, `asobi_lua_world`, `asobi_lua_reload`, and `asobi_lua_api` swapped for the OTP report-form macros.
  • Added `-include_lib("kernel/include/logger.hrl")` to each affected module.
  • No behaviour change; macros take the same map/format arguments. They inject file/line/module metadata automatically.

Followup from #44 (the code reviewer flagged the pre-existing drift but recommended a separate cleanup PR to keep the bisect clean).

Test plan

  • `rebar3 compile`
  • `rebar3 fmt --check`
  • `rebar3 xref`
  • `rebar3 dialyzer`
  • `rebar3 eunit` — 209/209 pass

20 logger:error/warning/notice function calls across asobi_lua_match,
asobi_lua_world, asobi_lua_reload, and asobi_lua_api swapped for the
OTP report-form macros, with -include_lib("kernel/include/logger.hrl")
added to each module.

No behaviour change; the macros take the same map/format arguments.
Project convention per the team's pre-push checklist prefers macros so
the compiler injects file/line/module metadata into every log entry
without each call repeating it.
@Taure Taure merged commit f651cc7 into main May 14, 2026
15 checks passed
@Taure Taure deleted the chore/logger-macros-sweep branch May 14, 2026 13:01
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