lib/bloat_check.rb in bloat_check-0.0.2 vs lib/bloat_check.rb in bloat_check-0.0.3
- old
+ new
@@ -27,9 +27,11 @@
end
}
end
def self.log(message)
+ return block_given? && yield if disabled?
+
start = Stats.get
if block_given?
begin
ret = yield
ensure