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

Modify the error message of configuring duplicate syslog to have a consistent message between versions. #2759

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

Conversation

chaoskao
Copy link

Modify the error message of configuring duplicate syslog to have a consistent message between versions.

What I did

Modify the error message of configuring duplicate syslog to have a consistent message between versions.

How I did it

The error message of configuring duplicate syslog is ambiguous to user, so modify it to make it have clearer meaning.

How to verify it

Modify the code and check the error message, also build the sonic-utilities python wheel to make sure all unit test cases will pass.

The error message after modification:

admin@sonic:~$ sudo config syslog add 20.1.1.12
Running command: systemctl reset-failed rsyslog-config rsyslog
Running command: systemctl restart rsyslog-config
admin@sonic:~$
admin@sonic:~$ sudo config syslog add 20.1.1.12
Usage: config syslog add [OPTIONS] SERVER_IP_ADDRESS

Error: Syslog server 20.1.1.12 is already configured.  <---------------- modified error message.

consistent message between versions.

- What I did:
Modify the error message of configuring duplicate syslog to have a
consistent message between versions.

- Why I did it:
The error message of configuring duplicate syslog is ambiguous to user,
so modify
it to make it have clearer meaning.

- How I verified it:
Modify the code and check the error message, also build the
sonic-utilities python wheel
to make sure all unit test cases will pass.

The error message after modification:
```
admin@sonic:~$ sudo config syslog add 20.1.1.12
Running command: systemctl reset-failed rsyslog-config rsyslog
Running command: systemctl restart rsyslog-config
admin@sonic:~$
admin@sonic:~$ sudo config syslog add 20.1.1.12
Usage: config syslog add [OPTIONS] SERVER_IP_ADDRESS

Error: Syslog server 20.1.1.12 is already configured.  <---------------- modified error message.
```
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