Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newrelic_agent_php logging extra deprecation warning #288

Open
shortdudey123 opened this issue Jan 12, 2017 · 0 comments
Open

newrelic_agent_php logging extra deprecation warning #288

shortdudey123 opened this issue Jan 12, 2017 · 0 comments

Comments

@shortdudey123
Copy link

Problem:

The newrelic_agent_php lwrp is outputing a deprecation warning about execute_php5enmod even if it is not specified in the resource call

Cookbook version: 2.25.0

newrelic_agent_php 'install' do
  license 'license'
  app_name 'app_name'
  service_name 'service_name'
  config_file '/etc/php.d/newrelic.ini'
end
  * newrelic_agent_php[install] action install[2017-01-12T02:48:28+00:00] WARN: The 'execute_php5enmod'-attribute has been deprecated. Please make use of the 'enable_module' attribute instead.
[2017-01-12T02:48:28+00:00] WARN: You've opted not to delete any PHP agent-generated config file.

    * yum_repository[newrelic] action create

This appears to be due to execute_php5enmod defaulting to false and the warning being shown if the property is false

Solutions Options:

  • Remove default for execute_php5enmod
  • Show message only if it is passed in as true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant