python-sdk-remote 0.0.170__py3-none-any.whl → 0.0.172__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.
- python_sdk_remote/mini_logger.py +9 -2
- {python_sdk_remote-0.0.170.dist-info → python_sdk_remote-0.0.172.dist-info}/METADATA +1 -1
- {python_sdk_remote-0.0.170.dist-info → python_sdk_remote-0.0.172.dist-info}/RECORD +5 -5
- {python_sdk_remote-0.0.170.dist-info → python_sdk_remote-0.0.172.dist-info}/WHEEL +0 -0
- {python_sdk_remote-0.0.170.dist-info → python_sdk_remote-0.0.172.dist-info}/top_level.txt +0 -0
python_sdk_remote/mini_logger.py
CHANGED
|
@@ -144,14 +144,21 @@ class MiniLogger:
|
|
|
144
144
|
MiniLogger._log(LogMessageSeverity.ERROR, log_message=log_message, **kwargs)
|
|
145
145
|
|
|
146
146
|
@staticmethod
|
|
147
|
-
def exception(log_message: Optional[str] = None, **kwargs):
|
|
147
|
+
def exception(log_message: Optional[str] = None, object=None, **kwargs):
|
|
148
148
|
"""
|
|
149
149
|
Print a log error message with the current time.
|
|
150
150
|
|
|
151
151
|
Parameters:
|
|
152
152
|
log_message (str): The message to be printed.
|
|
153
|
+
object: the caught exception, or a dict carrying it under "exception".
|
|
154
|
+
It is a named parameter and not kwargs-only because logger-local
|
|
155
|
+
passes it POSITIONALLY at 5 call sites, e.g. logger_local.py:486
|
|
156
|
+
`MiniLogger.exception("Error while trying to login ...", exception)`.
|
|
157
|
+
Those calls used to land on the erroneous `self` parameter removed
|
|
158
|
+
below; dropping `self` without naming this one turned every one of
|
|
159
|
+
them into `TypeError: exception() takes from 0 to 1 positional
|
|
160
|
+
arguments but 2 were given`.
|
|
153
161
|
"""
|
|
154
|
-
object = kwargs.get("object")
|
|
155
162
|
exception: Optional[Exception]
|
|
156
163
|
if isinstance(object, Exception):
|
|
157
164
|
exception = object
|
|
@@ -7,7 +7,7 @@ python_sdk_remote/generic_crud.py,sha256=jzmR27kr8Pnf4Gk90SKoxbM5ufLsOr2ofekRtcH
|
|
|
7
7
|
python_sdk_remote/http_response.py,sha256=T659q_iPt8SkT8k-T4ZfRy9VSh0uvHyluecqwZnhRqI,12888
|
|
8
8
|
python_sdk_remote/is_test_data.py,sha256=ZVu7ylFMV2FO0w0Huxqo5AXyZZ8GwbqJn3bWMRVR5ZE,110
|
|
9
9
|
python_sdk_remote/item.py,sha256=6DQs1nBKbEmnHjE50vZtkMr14ECS_9b8cvE7ItPAbhE,322
|
|
10
|
-
python_sdk_remote/mini_logger.py,sha256=
|
|
10
|
+
python_sdk_remote/mini_logger.py,sha256=0bWAT0XeB2B-_rTf9Ql6uewZsSgGasQ5rp3aRmsp1xE,6585
|
|
11
11
|
python_sdk_remote/our_obfuscation.py,sha256=YrQksRpJ_AwEio4xHq_TE8BQDXNGUbCQ-5E0OkcXYeM,10717
|
|
12
12
|
python_sdk_remote/our_object.py,sha256=iGvlkBG4jjYEtVBFrN-DVX0Oz5f6ZisWRgiYbXxfKto,6178
|
|
13
13
|
python_sdk_remote/our_objects.py,sha256=CUcuh5bYaO2JiVKu_hMsPqiWOuURMge0NBnnS_UpWZY,254
|
|
@@ -20,7 +20,7 @@ python_sdk_remote/utilities.py,sha256=1nlrE6FXVIdQDtLmF7IR935D6HMKoXIdp5vXRu6t_s
|
|
|
20
20
|
python_sdk_remote/valid_json_versions.py,sha256=zVtvhsEDKkfK3o8crdcP6YWjLnzh-OykWGPT7vghb6k,147
|
|
21
21
|
python_sdk_remote/validate_environment.py,sha256=VQKta418TmJwkUGXp0Rorhy65YANoNVgg86BIYPf2Wc,2321
|
|
22
22
|
python_sdk_remote/version.py,sha256=nJV1jCPXMEluCrvcEBWwM8BS6DzFTv7pULfqjGXs3uA,421
|
|
23
|
-
python_sdk_remote-0.0.
|
|
24
|
-
python_sdk_remote-0.0.
|
|
25
|
-
python_sdk_remote-0.0.
|
|
26
|
-
python_sdk_remote-0.0.
|
|
23
|
+
python_sdk_remote-0.0.172.dist-info/METADATA,sha256=bgSzmch2RcWz6KTa3DRFkkpAnzPvUD-e_LEYIVGUDHI,729
|
|
24
|
+
python_sdk_remote-0.0.172.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
25
|
+
python_sdk_remote-0.0.172.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
|
|
26
|
+
python_sdk_remote-0.0.172.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|