thds.core 1.32.20250218205907__py3-none-any.whl → 1.32.20250219003923__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.

Potentially problematic release.


This version of thds.core might be problematic. Click here for more details.

@@ -156,6 +156,19 @@ if not logging.getLogger().hasHandlers():
156
156
  except Exception as err:
157
157
  print(f"Unable to create log directory at '{log_path.parent}' - ERROR: {err}")
158
158
 
159
+ orig_excepthook = sys.excepthook
160
+
161
+ def log_exception_to_file(*exc_info):
162
+ logger = logging.getLogger()
163
+ console_handler = next(h for h in logger.handlers if isinstance(h, logging.StreamHandler))
164
+ prev_level = console_handler.level
165
+ console_handler.setLevel(logging.CRITICAL + 1) # temporarily disable
166
+ logger.error("logging uncaught exception to file", exc_info=exc_info)
167
+ console_handler.setLevel(prev_level) # restore
168
+ orig_excepthook(*exc_info)
169
+
170
+ sys.excepthook = log_exception_to_file
171
+
159
172
  logging.config.dictConfig(live_config)
160
173
  make_th_formatters_safe(logging.getLogger())
161
174
 
thds/core/meta.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "git_commit": "b5fa69236d2696ff5031c93f48f24068bc912b71",
2
+ "git_commit": "5ace26d6033170411d0ffd956316c60b816debf9",
3
3
  "git_branch": "main",
4
4
  "git_is_clean": true,
5
- "pyproject_version": "1.32.20250218205907",
5
+ "pyproject_version": "1.32.20250219003923",
6
6
  "thds_user": "runner",
7
7
  "misc": {}
8
8
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: thds.core
3
- Version: 1.32.20250218205907
3
+ Version: 1.32.20250219003923
4
4
  Summary: Core utilities.
5
5
  Author: Trilliant Health
6
6
  Description-Content-Type: text/markdown
@@ -24,7 +24,7 @@ thds/core/lazy.py,sha256=e1WvG4LsbEydV0igEr_Vl1cq05zlQNIE8MFYT90yglE,3289
24
24
  thds/core/link.py,sha256=kmFJIFvEZc16-7S7IGvtTpzwl3VuvFl3yPlE6WJJ03w,5404
25
25
  thds/core/logical_root.py,sha256=gWkIYRv9kNQfzbpxJaYiwNXVz1neZ2NvnvProtOn9d8,1399
26
26
  thds/core/merge_args.py,sha256=7oj7dtO1-XVkfTM3aBlq3QlZbo8tb6X7E3EVIR-60t8,5781
27
- thds/core/meta.json,sha256=5RCDn3r64ccjmylVfa8sQ-xBdAyh9Avn7CNFyGAekOo,196
27
+ thds/core/meta.json,sha256=aS7TTerOhB6ehU8c7sxfv-yvKwRUPj-Uy75NH7l9fEU,196
28
28
  thds/core/meta.py,sha256=IPLAKrH06HooPMNf5FeqJvUcM-JljTGXddrAQ5oAX8E,16896
29
29
  thds/core/parallel.py,sha256=HXAn9aIYqNE5rnRN5ypxR6CUucdfzE5T5rJ_MUv-pFk,7590
30
30
  thds/core/pickle_visit.py,sha256=QNMWIi5buvk2zsvx1-D-FKL7tkrFUFDs387vxgGebgU,833
@@ -41,7 +41,7 @@ thds/core/timer.py,sha256=1FfcQ4-Gp6WQFXR0GKeT_8jwtamEfnTukdSbDKTAJVM,5432
41
41
  thds/core/tmp.py,sha256=KgBAwQCmpm7I762eLRu-3MSfH3dKnqlrJkZ5nmPcRbc,3110
42
42
  thds/core/types.py,sha256=Pbo5bF3b14V8eeabpnffWOPJDAGrMcKBCh5e-ZvipJk,70
43
43
  thds/core/log/__init__.py,sha256=bDbZvlxyymY6VrQzD8lCn0egniLEiA9hpNMAXZ7e7wY,1348
44
- thds/core/log/basic_config.py,sha256=124QSR7rpdKBcor_Nb6yogskVCW_VeSIvBPTblO9Cdc,6113
44
+ thds/core/log/basic_config.py,sha256=2Y9U_c4PTrIsCmaN7Ps6Xr90AhJPzdYjeUzUMqO7oFU,6704
45
45
  thds/core/log/json_formatter.py,sha256=C5bRsSbAqaQqfTm88jc3mYe3vwKZZLAxET8s7_u7aN0,1757
46
46
  thds/core/log/kw_formatter.py,sha256=9-MVOd2r5NEkYNne9qWyFMeR5lac3w7mjHXsDa681i0,3379
47
47
  thds/core/log/kw_logger.py,sha256=CyZVPnkUMtrUL2Lyk261AIEPmoP-buf_suFAhQlU1io,4063
@@ -67,8 +67,8 @@ thds/core/sqlite/structured.py,sha256=swCbDoyVT6cE7Kl79Wh_rg5Z1-yrUDJbiVJF4bjset
67
67
  thds/core/sqlite/types.py,sha256=oUkfoKRYNGDPZRk29s09rc9ha3SCk2SKr_K6WKebBFs,1308
68
68
  thds/core/sqlite/upsert.py,sha256=BmKK6fsGVedt43iY-Lp7dnAu8aJ1e9CYlPVEQR2pMj4,5827
69
69
  thds/core/sqlite/write.py,sha256=z0219vDkQDCnsV0WLvsj94keItr7H4j7Y_evbcoBrWU,3458
70
- thds.core-1.32.20250218205907.dist-info/METADATA,sha256=8J4gc4K3IVjZ8nbAHcbuAEDLv3h7yhh9FqFtonlzT4s,2123
71
- thds.core-1.32.20250218205907.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
72
- thds.core-1.32.20250218205907.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
73
- thds.core-1.32.20250218205907.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
74
- thds.core-1.32.20250218205907.dist-info/RECORD,,
70
+ thds.core-1.32.20250219003923.dist-info/METADATA,sha256=zcf4_HiAJ2S0K-WACOCXPbIywn-JVA0cDIH1cWTvjVg,2123
71
+ thds.core-1.32.20250219003923.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
72
+ thds.core-1.32.20250219003923.dist-info/entry_points.txt,sha256=bOCOVhKZv7azF3FvaWX6uxE6yrjK6FcjqhtxXvLiFY8,161
73
+ thds.core-1.32.20250219003923.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
74
+ thds.core-1.32.20250219003923.dist-info/RECORD,,