codemie-sdk-python 0.1.476__py3-none-any.whl → 0.1.477__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codemie_sdk/utils/http.py +5 -5
- {codemie_sdk_python-0.1.476.dist-info → codemie_sdk_python-0.1.477.dist-info}/METADATA +1 -1
- {codemie_sdk_python-0.1.476.dist-info → codemie_sdk_python-0.1.477.dist-info}/RECORD +4 -4
- {codemie_sdk_python-0.1.476.dist-info → codemie_sdk_python-0.1.477.dist-info}/WHEEL +0 -0
codemie_sdk/utils/http.py
CHANGED
|
@@ -24,16 +24,16 @@ def log_request(func):
|
|
|
24
24
|
|
|
25
25
|
@wraps(func)
|
|
26
26
|
def wrapper(self, *args, **kwargs):
|
|
27
|
-
|
|
28
|
-
endpoint = kwargs.get("endpoint", args[
|
|
29
|
-
logger.debug(f"Making {
|
|
27
|
+
http_method = func.__name__.upper()
|
|
28
|
+
endpoint = kwargs.get("endpoint", args[0] if args else None)
|
|
29
|
+
logger.debug(f"Making {http_method} request to {self._base_url}{endpoint}")
|
|
30
30
|
|
|
31
31
|
try:
|
|
32
32
|
result = func(self, *args, **kwargs)
|
|
33
|
-
logger.info(f"Successfully processed {
|
|
33
|
+
logger.info(f"Successfully processed {http_method} request to {endpoint}")
|
|
34
34
|
return result
|
|
35
35
|
except Exception as e:
|
|
36
|
-
logger.error(f"Error during {
|
|
36
|
+
logger.error(f"Error during {http_method} request to {endpoint}: {str(e)}")
|
|
37
37
|
raise
|
|
38
38
|
|
|
39
39
|
return wrapper
|
|
@@ -56,7 +56,7 @@ codemie_sdk/services/workflow.py,sha256=6E388wjboAaMMLDhqZISubHwlx46yAtLqlkqzm3l
|
|
|
56
56
|
codemie_sdk/services/workflow_execution.py,sha256=Nnf_ZJQrK9HiRyCRuUjUu3jXmbH3snLpEdIPrz1tQfY,6040
|
|
57
57
|
codemie_sdk/services/workflow_execution_state.py,sha256=u1xmGvaHjqvQS5ujhyvJ_Ac7ByjKem2Qe8q0swsmoWw,2045
|
|
58
58
|
codemie_sdk/utils/__init__.py,sha256=EzK_UrS5KHmAnE73Hci9LaObB5omjVUhIq4svh0gfwo,137
|
|
59
|
-
codemie_sdk/utils/http.py,sha256=
|
|
60
|
-
codemie_sdk_python-0.1.
|
|
61
|
-
codemie_sdk_python-0.1.
|
|
62
|
-
codemie_sdk_python-0.1.
|
|
59
|
+
codemie_sdk/utils/http.py,sha256=yKWx-K9cFbpstVt0qran42e6MESm0f6XVd8MIctaD5Y,12546
|
|
60
|
+
codemie_sdk_python-0.1.477.dist-info/METADATA,sha256=uc_sLuPEE2r8ukABSBqhWFCjBjgzyepL2zAul1ySUg4,36801
|
|
61
|
+
codemie_sdk_python-0.1.477.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
62
|
+
codemie_sdk_python-0.1.477.dist-info/RECORD,,
|
|
File without changes
|