Only separate loggings with a comma when there are actually two statements

上级 6233628b
...@@ -76,7 +76,8 @@ def perform_action_with_benchmark ...@@ -76,7 +76,8 @@ def perform_action_with_benchmark
log_message << view_runtime if logging_view log_message << view_runtime if logging_view
if logging_active_record if logging_active_record
log_message << ", " + active_record_runtime + ")" log_message << ", " if logging_view
log_message << active_record_runtime + ")"
else else
")" ")"
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册