Page MenuHomePhabricator

[backend][dev] Add logging
Closed, ResolvedPublic

Description

Add basic logging using Python's built-in logging library.

Event Timeline

Hello again @SuvamManna! This task too belongs to the same Outreachy project. In general, any project with an Outreachy tag is reserved for the interns working on it. If you are interested in GSoC (which I think I saw you mention on Zulip), then checking out the proposed projects for the upcoming round may be a good start: https://www.mediawiki.org/wiki/Google_Summer_of_Code/2023

populate_db.py could be a good place to start

NicoleLBee changed the task status from Open to In Progress.EditedMar 7 2023, 3:42 PM
NicoleLBee claimed this task.
NicoleLBee moved this task from Backlog to In Progress on the Toolhunt board.

I've opened a PR that addresses at least the initial phase of this (basic logging for populate_db.py): https://github.com/wikimedia/toolhunt/pull/51

I converted my print() statements to logging statements, but commented most of them out; please let me know if there's any information there that would be useful. We had a conversation about this somewhere -- about what would be useful to log -- but I can't seem to find it now.

Basic logging added as part of the populate_db refactoring; see T331016