lib/factbase/looged.rb in factbase-0.0.50 vs lib/factbase/looged.rb in factbase-0.0.51
- old
+ new
@@ -53,11 +53,10 @@
Query.new(@fb, query, @loog)
end
def txn(this = self, &)
start = Time.now
- before = @fb.size
id = nil
rollback = false
r = @fb.txn(this) do |fbt|
id = fbt.object_id
yield fbt
@@ -66,10 +65,10 @@
raise e
end
if rollback
@loog.debug("Txn ##{id} rolled back in #{start.ago}")
else
- @loog.debug("Txn ##{id} #{r ? 'modified' : 'didn\'t touch'} #{before} facts in #{start.ago}")
+ @loog.debug("Txn ##{id} #{r ? 'modified' : 'didn\'t touch'} the factbase in #{start.ago}")
end
r
end
def export