Skip to content

Commit 4209dcf

Browse files
committed
Add deprecated log
Signed-off-by: Yuta Iwama <[email protected]>
1 parent 5df793c commit 4209dcf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/fluent/msgpack_factory.rb

+9
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,23 @@ module MessagePackFactory
2323

2424
module Mixin
2525
def msgpack_factory
26+
if $log
27+
$log.warn('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.engine_factory')
28+
end
2629
MessagePackFactory.engine_factory
2730
end
2831

2932
def msgpack_packer(*args)
33+
if $log
34+
$log.warn('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.msgpack_packer')
35+
end
3036
MessagePackFactory.msgpack_packer(*args)
3137
end
3238

3339
def msgpack_unpacker(*args)
40+
if $log
41+
$log.warn('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.msgpack_unpacker')
42+
end
3443
MessagePackFactory.msgpack_unpacker(*args)
3544
end
3645
end

0 commit comments

Comments
 (0)