Messages Integration with Enhanced Logging #181
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 ❤️