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

Messages Integration with Enhanced Logging #181

Closed
wants to merge 14 commits into from

Conversation

FikryCoder
Copy link

This pull request will help improve the manageability of our code by consolidating all console messages into one file named `messages.py’. Some of the changes made are:

Identification and Extraction:

Went through every script to identify and extract every message printed on the screen.

Creation of Messages.py:

Created another file called `messages.py’

Have constants for each message that was extracted in order to centralize all console messages in one place.

Updating Scripts:

Updated any relevant scripts to import needed constants from `messages.py’
Replaced some hard-coded messages in the scripts with references to these constants.

By doing this refactoring, we ensure that all console messages come from one place which makes it easier to update and maintain them. Any future changes that will be done concerning any of these messages will only need to be made at one location hence reducing inconsistencies risk, hence making code easy to read.

Kindly review these changes giving your feedbacks. Thank you ❤️

@Leviaria Leviaria closed this Jun 28, 2024
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.

2 participants