Skip to content

Fix syslog enabled value#815

Merged
lornasong merged 1 commit intomainfrom
syslog-enable
Apr 27, 2022
Merged

Fix syslog enabled value#815
lornasong merged 1 commit intomainfrom
syslog-enable

Conversation

@lornasong
Copy link
Member

Context: syslog should be automatically enabled if other fields (e.g. facility
or name) values are provided. This is documented in CTS

Issue: syslog enabled field has to be specifically set to true. Otherwise it is
false even though other config fields are provided.

This was caused by the default was set to enabled=false. When CTS builds the
config, the user-provided config is merged with the default config. If the user
left enabled unconfigured, it would merge with the default enabled=false. This
results in enabled being set to false in a way that looks as though the user set
enabled to false.

Related: #812

@lornasong lornasong added the bug Something isn't working label Apr 26, 2022
@lornasong lornasong requested review from a team and wilkermichael and removed request for a team April 26, 2022 15:28
@wilkermichael
Copy link
Contributor

@lornasong looks good, good catch

Context: syslog should be automatically enabled if other fields (e.g. facility
or name) values are provided. This is documented in CTS

Issue: syslog enabled field has to be specifically set to true. Otherwise it is
false even though other config fields are provided.

This was caused by the default was set to enabled=false. When CTS builds the
config, the user-provided config is merged with the default config. If the user
left enabled unconfigured, it would merge with the default enabled=false. This
results in enabled being set to false in a way that looks as though the user set
enabled to false.

Related: #812
@lornasong
Copy link
Member Author

no changes, just rebase latest on main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants