Sinaptik-AI / pandas-ai

Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.
https://pandas-ai.com
Other
11.69k stars 1.08k forks source link

fix: logging behavior based on verbose and save_logs settings #1169

Closed gventuri closed 1 month ago

gventuri commented 1 month ago

Related to #1167

Updates the Logger class in pandasai/helpers/logger.py to respect the verbose and save_logs settings more accurately.


For more details, open the Copilot Workspace session.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 44.44444% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 78.48%. Comparing base (2502d04) to head (a4f64e7).

Files Patch % Lines
pandasai/helpers/logger.py 44.44% 15 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1169 +/- ## ========================================== - Coverage 78.56% 78.48% -0.09% ========================================== Files 117 117 Lines 4624 4630 +6 ========================================== + Hits 3633 3634 +1 - Misses 991 996 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

gventuri commented 1 month ago

Refactors logging behavior in Logger class to correctly handle verbose and save_logs settings.


For more details, open the Copilot Workspace session.