astrodbtoolkit / astrodbtoolkit/AstrodbKit

Add logging and/or other debugging help

Open
#100 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
12
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I recently encountered an error while running db.inventory on a source. As is usual with sqlalchemy, the error message was not helpful. It would have been super helpful to have the ability to turn on logging.debug for astrodbkit to get more info. We ended up adding a print statement in this loop to see that it was crashing on a new reference table which we had neglected to add to the REFERENCE_TABLE list.

https://github.com/astrodbtoolkit/AstrodbKit/blob/24a4749f0a0a1ff8709b73f6011f3ed4fc224ec7/astrodbkit/astrodb.py#L483

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in astrodbkit/astrodb.py around line 483, where the issue reports adding a print statement in a loop exposed the failing reference table. Reproduce the db.inventory error and inspect the existing SQLAlchemy-related flow. Done means users can enable debugging information for this failure without adding temporary print statements.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlalchemy
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.