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

[dockers/supervisord]: Don't use deprecated config options #20980

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

Conversation

bradh352
Copy link

@bradh352 bradh352 commented Dec 1, 2024

Why I did it

Supervisord emits warnings due to the use of stdout_logfile=syslog and stderr_logfile=syslog.

Example:

2024 Dec  1 15:31:06.467218 sw2 INFO pmon#supervisord 2024-12-01 15:31:04,033 WARN For [program:xcvrd], stderr_logfile=syslog but this is deprecated and will be removed.  Use stderr_syslog=true to enable syslog instead.
Work item tracking

How I did it

Read the configuration documentation at https://github.com/Supervisor/supervisor/blob/main/docs/configuration.rst

Then replaced with the modern configuration options of stdout_syslog=true and stderr_syslog=true and set the log file itself to NONE so it doesn't generate a file-based log.

How to verify it

Apply patch, observe the warnings go away in syslog.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

master as of 20241201

Description for the changelog

[dockers/supervisord]: Don't use deprecated config options

Link to config_db schema for YANG module changes

N/A

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Brad House (@bradh352)

Supervisord emits warnings due to the use of `stdout_logfile=syslog`
and `stderr_logfile=syslog`.  Replace with the modern configuration
options of `stdout_syslog=true` and `stderr_syslog=true` and set
the log file itself to `NONE` so it doesn't generate a file-based
log.

Warnings corrected look like:
```
2024 Dec  1 15:31:06.467218 sw2 INFO pmon#supervisord 2024-12-01 15:31:04,033 WARN For [program:xcvrd], stderr_logfile=syslog but this is deprecated and will be removed.  Use stderr_syslog=true to enable syslog instead.
```

Signed-off-by: Brad House (@bradh352)
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 this pull request may close these issues.

1 participant