removed private def's from macros
This commit is contained in:
+2
-2
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user