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

Misallignment in logging for processMention #11

Open
e-dreyer opened this issue Jul 26, 2023 · 1 comment
Open

Misallignment in logging for processMention #11

e-dreyer opened this issue Jul 26, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@e-dreyer
Copy link
Owner

Problem

The alignment for processMention is wrong in the logging.

2023-07-26 09:33:53 2023-07-26 07:33:53,461   - [INFO] - mastoBot.refresh_rate                   - ⌛     Refresh rate set to: 10                       
2023-07-26 09:33:53 2023-07-26 07:33:53,461   - [INFO] - mastoBot.__init__                       - ✅     Config and credentials initialized            
2023-07-26 09:33:54 2023-07-26 07:33:54,346   - [INFO] - mastoBot.__init__                       - ✅     Mastodon.py initialized                       
2023-07-26 09:33:54 2023-07-26 07:33:54,348   - [INFO] - mastoBot.run                            - ⛏️     Starting main loop                           
2023-07-26 09:34:48 2023-07-26 07:34:48,158   - [INFO] - mastoBot.reblogStatus                   - 🗣️     Status reblogged                             
2023-07-26 09:34:49 2023-07-26 07:34:49,570   - [INFO] - mastoBot.favoriteStatus                 - ⭐     Status favorited                              
2023-07-26 09:34:49 2023-07-26 07:34:49,573   - [INFO] - main.processMention                 - 📬         Mention processed: 2179567                    
2023-07-26 09:34:49 2023-07-26 07:34:49,872   - [INFO] - mastoBot.dismissNotification            - 📭     Notification 2179567 dismissed
@e-dreyer e-dreyer added bug Something isn't working good first issue Good for newcomers labels Jul 26, 2023
@e-dreyer
Copy link
Owner Author

The reason why this is happening isn't making sense to me. The line is shorter than the rest and it is the same format for the logging. This is one of those stupid ones that will be needed to be tested until it works with some hard-coded value.

Otherwise, an implementation of a log feature will be required, to handle all logs and keep the format concise. Users should be able to pass string, lists and dicts and it should just be handled correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant