astrodbtoolkit / astrodbtoolkit/AstrodbKit
Add logging and/or other debugging help
- 主要言語
- Python
- スター
- 12
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
astrodbkit/astrodb.py の483行目付近から開始します。issueでは、ループ内に print 文を追加したことで、失敗している参照テーブルが明らかになったと報告されています。db.inventory エラーを再現し、既存の SQLAlchemy 関連のフローを調査します。ユーザーが一時的な print 文を追加せずに、この失敗に対するデバッグ情報を有効にできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, sqlalchemy
- 領域
- database
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100