astrodbtoolkit / astrodbtoolkit/AstrodbKit

Use logger to add debug mode

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When in debug mode,
- print the filename being saved in the `save_json` function
- print the filename being opened in `load_json` function.
- do whatever `verbose=True` does in the `search_object` function

When `load_database` or `save_database` fails, this would help troubleshoot the file that is causing the problem.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the save_json, load_json, search_object, load_database, and save_database functions to understand the existing verbose behavior and failure paths. Add debug logging for filenames saved and opened, and make debug mode include the behavior provided by verbose=True in search_object; done means database failures expose the relevant filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
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.