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

Unused variable 'log_group_final' #568

Closed
paescuj opened this issue Mar 18, 2020 · 3 comments · Fixed by #570
Closed

Unused variable 'log_group_final' #568

paescuj opened this issue Mar 18, 2020 · 3 comments · Fixed by #570

Comments

@paescuj
Copy link

paescuj commented Mar 18, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: irrelevant
  • Ruby: irrelevant
  • Distribution: irrelevant
  • Module version: v7.0.0

How to reproduce (e.g Puppet code you use)

irrelevant

What are you seeing

The variable 'log_group_final', defined in fpm/config.pp, is not used anywhere.

~/puppet-php $ grep log_group_final -r
docs/puppet_classes/php_3A_3Afpm_3A_3Aconfig.html:  $log_group_final = $log_group ? {
manifests/fpm/config.pp:  $log_group_final = $log_group ? {

What behaviour did you expect instead

The variable assignment should be removed.

Output log

Any additional information you'd like to impart

@rwaffen
Copy link
Sponsor Member

rwaffen commented Mar 30, 2020

i have something to add... also log_owner is never used. we had the desire to do so, but than saw that it is complete ignored...

@paescuj
Copy link
Author

paescuj commented Mar 30, 2020

@rwaffen Did you want to set the owner of the directory /var/log/php-fpm? If you want to do so, I could update my pull request #570 accordingly.

@fbrehm
Copy link

fbrehm commented Mar 31, 2020

To leave my 50 cent: the expected behavior should be also to set the owner of all log files below /var/log/php-fpm. We are coming in big trouble with logrotate if the owner of the directory is e.g. apache, and the owner of the logfiles is root.
But to be honest, I don't know whether there is a way to define tho ownership of the log files in the PHP FPM configuration.

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

Successfully merging a pull request may close this issue.

3 participants