removed private def's from macros

This commit is contained in:
Tristan Ancelet
2026-09-02 10:33:04 -05:00
parent b4f00010c2
commit 69e7e8d9fa
+2 -2
View File
@@ -19,7 +19,7 @@ module Logger
# Macro for doing the actual logging based on how the user has # Macro for doing the actual logging based on how the user has
# the Logger annotations # the Logger annotations
private macro log_with_context(level, message) macro log_with_context(level, message)
{% if @def && @def.annotation(LogMethod) %} {% if @def && @def.annotation(LogMethod) %}
{% anno = @def.annotation(LogMethod) %} {% anno = @def.annotation(LogMethod) %}
{% exclude = (anno[:exclude] || [] of MacroId).map(&.id) %} {% exclude = (anno[:exclude] || [] of MacroId).map(&.id) %}
@@ -49,7 +49,7 @@ module Logger
end end
# Generates the log-line (everything that isn't ::Log managed) # Generates the log-line (everything that isn't ::Log managed)
private macro generate_log_line(message) macro generate_log_line(message)
{% if @def %} {% if @def %}
[ "Method({{@def.name}})", {{message}} ].join(" : ") [ "Method({{@def.name}})", {{message}} ].join(" : ")
{% else %} {% else %}