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

refactor(llamabot)🔧: Refactor database path resolution across multiple modules #150

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

ericmjl
Copy link
Owner

@ericmjl ericmjl commented Nov 24, 2024

  • Centralize database path resolution logic in find_or_set_db_path function.
  • Replace direct path resolution with calls to find_or_set_db_path in various modules.
  • Ensure database paths are added to .gitignore appropriately.

…e modules

- Centralize database path resolution logic in `find_or_set_db_path` function.
- Replace direct path resolution with calls to `find_or_set_db_path` in various modules.
- Ensure database paths are added to `.gitignore` appropriately.
- Centralize the find_or_set_db_path function in utils.py, removing redundancy.
- Implement dynamic log level setting based on environment variable.
- Ensure the .llamabot directory exists at the user's home for database logging.
Copy link

PR Preview Action v1.4.8
🚀 Deployed preview to https://ericmjl.github.io/llamabot/pr-preview/pr-150/
on branch gh-pages at 2024-11-24 00:29 UTC

@ericmjl ericmjl merged commit 2dba66b into main Nov 24, 2024
11 checks passed
@ericmjl ericmjl deleted the better-messagelog-handling branch November 24, 2024 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant