Determine the log level

To add to this, you can do

@debug begin
   # computations # 
   formatted_result = ...
end

for complicated debug operations.

2 Likes