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

Allow no logfile to log to systemd-journald only #534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lbetz
Copy link
Contributor

@lbetz lbetz commented Sep 24, 2024

Pull Request (PR) description

Redis allows to set logfile to an empty string "" to disable logging to file.
if this is done, only the systemd-journald is logged.

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the enhancement New feature or request label Sep 24, 2024
@@ -386,7 +387,7 @@
Integer[0] $list_max_ziplist_value = 64,
Stdlib::Absolutepath $log_dir = $redis::params::log_dir,
Stdlib::Filemode $log_dir_mode = $redis::params::log_dir_mode,
String $log_file = 'redis.log',
Variant[Boolean[false], String[1]] $log_file = 'redis.log',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add a unit test that sets this to false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grrr. Done.

@bastelfreak
Copy link
Member

mhm I'm not sure why it fails on Puppet 7 🤔

@lbetz
Copy link
Contributor Author

lbetz commented Sep 24, 2024

Who if not you?

@bastelfreak
Copy link
Member

https://github.com/voxpupuli/puppet-redis/actions/runs/11087638787/job/30806564732?pr=535 at least we now know the issue is present in main. I assume it's a regression in Puppet 7 🤔

@bastelfreak
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants