sotkalib 0.1.0b1__py3-none-any.whl → 0.1.0b2__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.
@@ -2,6 +2,8 @@ from collections.abc import Callable, Coroutine
2
2
  from functools import wraps
3
3
  from typing import Any
4
4
 
5
+ from sotkalib.log import get_logger
6
+
5
7
  from .args_incl_error import ArgsIncludedError
6
8
 
7
9
 
@@ -14,6 +16,7 @@ def exception_handler[**P, R](
14
16
  try:
15
17
  return func(*args, **kwargs)
16
18
  except Exception as e:
19
+ get_logger().exception("")
17
20
  raise ArgsIncludedError(*e.args, stack_depth=stack_depth) from e
18
21
 
19
22
  return wrapper
@@ -28,6 +31,7 @@ def aexception_handler[**P, R](
28
31
  try:
29
32
  return await func(*args, **kwargs)
30
33
  except Exception as e:
34
+ get_logger().exception("")
31
35
  raise ArgsIncludedError(*e.args, stack_depth=stack_depth) from e
32
36
 
33
37
  return wrapper
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sotkalib
3
- Version: 0.1.0b1
3
+ Version: 0.1.0b2
4
4
  Summary:
5
5
  Author: alexey
6
6
  Author-email: alexey <me@pyrorhythm.dev>
@@ -9,7 +9,7 @@ sotkalib/exceptions/__init__.py,sha256=jXqvK7RbP7Kw7mJt2bG9R9qDpVQmtivoN_0v0F9v3
9
9
  sotkalib/exceptions/api.py,sha256=gqx4GrHXUvKcR7tEmJpRqPbDWOT2AgKoyck8-FovQCc,1329
10
10
  sotkalib/exceptions/handlers/__init__.py,sha256=Pz1akT2x3SaRsPezNPYnCoTcejxy4n4_cO4cXRJUBIk,179
11
11
  sotkalib/exceptions/handlers/args_incl_error.py,sha256=rYiBximsXVw1YDUBbdsqeqsfTWxshyX4EdISXWYkPDE,533
12
- sotkalib/exceptions/handlers/core.py,sha256=5fhusoxBhUz59TaVWobplBvD-sbkZKBnmmu-fcSyRk4,836
12
+ sotkalib/exceptions/handlers/core.py,sha256=kN9W8JC6Wz8juZfQSKsq94tVOfKIqL81X9W1nXmvxxE,933
13
13
  sotkalib/exceptions/traceback.py,sha256=lIcYIgbJ3SBc9rp1ZJ0WOht5YZF_QNXIwmpxkAmVfM4,115
14
14
  sotkalib/func/__init__.py,sha256=j-18eXcSJ6RDqsJJE1i4rxJdbgpx-mEuJy9rY_xzLmE,187
15
15
  sotkalib/func/concur.py,sha256=J75_puWR61Bom3lGsMROvfuXfJNLoOxCmvwzHogtKbk,311
@@ -27,6 +27,6 @@ sotkalib/sqla/db.py,sha256=6ZckKQ8kmRlYrwCAzKidc_JNPwqp38tSGEy3XMGnv08,3376
27
27
  sotkalib/sqla/dbm.py,sha256=Cd_2jM-mB5G6RxSu9H0f8pkvIXEjS0zaxsJqivSu29o,580
28
28
  sotkalib/time/__init__.py,sha256=SIfMwGfbHGQNL0RqvUPGrXTsGKuiEk860ZpkyLmvUkk,203
29
29
  sotkalib/type/__init__.py,sha256=S94n-b5jU3TB5I9a8GIVanMKqlWtfUTTTch_87xYS-U,234
30
- sotkalib-0.1.0b1.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
31
- sotkalib-0.1.0b1.dist-info/METADATA,sha256=YEheXrjYWfL8UvqnJ-Qh_Lt-rAyUNdlZ87qxkelh6JA,388
32
- sotkalib-0.1.0b1.dist-info/RECORD,,
30
+ sotkalib-0.1.0b2.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
31
+ sotkalib-0.1.0b2.dist-info/METADATA,sha256=as0DGRN3rdc1geFmBoH4LCppcHlLJg16d1bAP8Hi5ik,388
32
+ sotkalib-0.1.0b2.dist-info/RECORD,,