Better warning messages for depreaction of ddtrace-python and dogstatsd-python.
MODIFY
recipes/ddtrace-python.rb
recipes/ddtrace-python.rb
# NB: This recipe is compatible with Chef <= 12 only. If you're using Chef 13 or higher
# please refer to the README of the cookbook.
-log 'message' do
- message 'This recipe will be deprecated in version 3.0.0 of the cookbook. See README.md chapter ddtrace-python for more infos.'
- level :warn
-end
+Chef::Log.warn 'The ddtrace-python recipe will be deprecated in version 3.0.0 of the datadog cookbook. See README.md section ddtrace-python for more info.'
easy_install_package 'ddtrace' do
version node['datadog']['ddtrace_python_version']

MODIFY
recipes/dogstatsd-python.rb
recipes/dogstatsd-python.rb
# NB: This recipe is compatible with Chef <= 12 only. If you're using Chef 13 or higher
# please refer to the README of the cookbook.
-log 'message' do
- message 'This recipe will be deprecated in version 3.0.0 of the cookbook. See README.md chapter dogstatsd-python for more infos.'
- level :warn
-end
+Chef::Log.warn 'The dogstatsd-python recipe will be deprecated in version 3.0.0 of the datadog cookbook. See README.md section dogstatsd-python for more info.'
easy_install_package 'dogstatsd-python'

Better warning messages for depreaction of ddtrace-python and dogstatsd-python.