Skip to content

17 change log level in alanubeapiprocess response to debug#18

Merged
wilmerm merged 4 commits intomainfrom
17-change-log-level-in-alanubeapiprocess_response-to-debug
Jul 5, 2025
Merged

17 change log level in alanubeapiprocess response to debug#18
wilmerm merged 4 commits intomainfrom
17-change-log-level-in-alanubeapiprocess_response-to-debug

Conversation

@wilmerm
Copy link
Owner

@wilmerm wilmerm commented Jul 5, 2025

This pull request introduces several updates to the alanube/do/api.py and alanube/do/config.py files, focusing on improving error handling, logging, and internationalization, as well as expanding configuration options for currencies and measurement units. Below is a summary of the most important changes:

Error Handling and Logging Improvements:

  • Added a runtime check in alanube/do/api.py to ensure the API is connected before retrieving headers, raising an error if not connected.
  • Enhanced logging in alanube/do/api.py by separating data and response details into logger.debug calls for better granularity. [1] [2]

Internationalization Updates:

  • Updated status descriptions in alanube/do/config.py to English while retaining Spanish comments for context.

Configuration Enhancements:

  • Fixed a typo in the currency configuration (ERU changed to EUR) and added new currencies: Haitian Gourde (HTG) and Mexican Peso (MXN).
  • Expanded the measurement unit configuration in alanube/do/config.py by adding new units such as Bandeja, Hectárea, Mililitro, Miligramo, Onzas, and Onzas Troy.

@wilmerm wilmerm self-assigned this Jul 5, 2025
@wilmerm wilmerm linked an issue Jul 5, 2025 that may be closed by this pull request
@wilmerm wilmerm merged commit 5a4852a into main Jul 5, 2025
@wilmerm wilmerm deleted the 17-change-log-level-in-alanubeapiprocess_response-to-debug branch July 5, 2025 03:15
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.

Change log level in AlanubeAPI.process_response to debug

1 participant