lib/libvirt/storage_pool.rb in libvirt_ffi-0.7.0 vs lib/libvirt/storage_pool.rb in libvirt_ffi-0.8.0
- old
+ new
@@ -11,11 +11,11 @@
def initialize(pointer)
@ptr = pointer
free = ->(obj_id) do
- Util.log(:debug) { "Finalize Libvirt::StoragePool 0x#{obj_id.to_s(16)} @ptr=#{@ptr}," }
+ dbg { "Finalize Libvirt::StoragePool 0x#{obj_id.to_s(16)} @ptr=#{@ptr}," }
return unless @ptr
fr_result = FFI::Storage.virStoragePoolFree(@ptr)
warn "Couldn't free Libvirt::StoragePool (0x#{obj_id.to_s(16)}) pointer #{@ptr.address}" if fr_result.negative?
end
@@ -77,9 +77,9 @@
end
private
def dbg(&block)
- Util.log(:debug, 'Libvirt::Domain', &block)
+ Util.log(:debug, 'Libvirt::StoragePool', &block)
end
end
end