datashare-python 0.9.3__py3-none-any.whl → 0.9.5__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.
@@ -88,7 +88,9 @@ def discover(
88
88
  worker_config_cls = discover_worker_config_cls()
89
89
  else:
90
90
  worker_config_cls = WorkerConfig
91
- discovered += f"- worker config class: {worker_config_cls}"
91
+ if discovered:
92
+ discovered += "\n"
93
+ discovered += f"- worker config class: {worker_config_cls.__name__}"
92
94
  logger.info("discovered:\n%s", discovered)
93
95
  return wfs, acts, deps, worker_config_cls
94
96
 
@@ -67,8 +67,6 @@ class WorkerFilter(logging.Filter):
67
67
  self.worker_id = worker_id
68
68
 
69
69
  def filter(self, record: logging.LogRecord) -> bool:
70
- if not hasattr(record, "message") and record.msg is not None:
71
- setattr(record, "msg", record.msg) # noqa: B010
72
70
  if self.worker_id is not None:
73
71
  record.worker_id = self.worker_id
74
72
  if workflow.in_workflow():
@@ -121,8 +119,9 @@ class LogFmtFormatter(logging.Formatter):
121
119
  record.exc_text = self.formatException(record.exc_info)
122
120
  logged["exc_info"] = record.exc_text
123
121
  for k, v in record.__dict__.items():
124
- if k in _LOGGED_ATTRIBUTES and k != "exc_info":
122
+ if k in _LOGGED_ATTRIBUTES and k not in {"exc_info", "msg"}:
125
123
  logged[k] = _encode_value(v)
124
+ logged["msg"] = _encode_value(record.getMessage())
126
125
  return " ".join(f"{k}={v}" for k, v in sorted(logged.items()))
127
126
 
128
127
 
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.9.3
3
+ Version: 0.9.5
4
4
  Summary: Manage Python tasks and local resources in Datashare
5
5
  Project-URL: Homepage, https://icij.github.io/datashare-python/
6
6
  Project-URL: Documentation, https://icij.github.io/datashare-python/
@@ -5,23 +5,23 @@ datashare_python/config.py,sha256=1-uksky9GwmPh85E3JYt6X4hgjP68gUmZjZM7qf3VUI,37
5
5
  datashare_python/conftest.py,sha256=kqpvHJg9_-xYKvxFO8NIVWhr-VS5jj98GUx-SnxJksY,8849
6
6
  datashare_python/constants.py,sha256=uX90ZdWGXq7TjjKgylBKHPZ3Hdp01k4diN-xZaZ7VHA,355
7
7
  datashare_python/dependencies.py,sha256=JdKZX3TlbYQk1YLvscGEdXQNJ9TFjtbxmYwlxNyqGOg,4793
8
- datashare_python/discovery.py,sha256=dKCZFTa3R-Weg4LL39wL85vstsol6tTh3g0jbpeOh4E,7122
8
+ datashare_python/discovery.py,sha256=3mUck2GUSKu2DSP9-MM1OdVM4FqFKqfBeSQDQZxgh2g,7177
9
9
  datashare_python/exceptions.py,sha256=bVHEAXxDPKfxeeMC0hJXEsrJkgsKO2ESAhxWU96GA4M,496
10
10
  datashare_python/interceptors.py,sha256=zOjUgeg8SF8Y63CBMWl4Iri1blPXHm--LsfhBSjUvY0,12576
11
- datashare_python/logging_.py,sha256=XUnZ0LB6pfuijvmAlWboDuAf4Itf-qluT7W8k4tadkM,4617
11
+ datashare_python/logging_.py,sha256=B__mp_CnIdVin5y9mcEBxXTSUhqv0x7T5sdlKQzUA8A,4558
12
12
  datashare_python/objects.py,sha256=4vZXLHhrOEorghq4GY_E6SgJc1eVtqHi6ae-eP_H-X8,12649
13
13
  datashare_python/task_client.py,sha256=oTmP8bvZW0UyhLNMi1AV3XIAx7hrdbxNRss2Mw2azEc,8435
14
14
  datashare_python/template.py,sha256=N1uM8TRXh5tQPV7BC1oJj-Pdm2Gs_SkjaXv50RnNYso,4682
15
15
  datashare_python/types_.py,sha256=XEINCQNVuYJkK39YCs8-A4kr7MhSjQT66_fjynHTr68,727
16
16
  datashare_python/utils.py,sha256=l0s88_Atj3E0DiPDJaCSm5AYUxwauqdUrNM2_9iR7qo,16097
17
- datashare_python/worker-template.tar.gz,sha256=ZXo1A_seGlsBidGVmBaMWQBt_ho5S8kP5-NgZo-AVKs,289243
17
+ datashare_python/worker-template.tar.gz,sha256=Vv-wg7leeE13GolQd-KRDfRbOIb08U4Hmv0f6VGi0dI,289248
18
18
  datashare_python/worker.py,sha256=-Ao383ucpr92M-unwy3oPWpmg_QCosjTKh7TGaF2LRk,7672
19
19
  datashare_python/cli/__init__.py,sha256=9BPWtssDgsVfWMsZ1TtZCla0EC_kai4RHttr8oNLYOE,1401
20
20
  datashare_python/cli/project.py,sha256=w32Gy9AOL5B00uDT4in7YUCt2g68FnNbvwg2M3a8G6o,946
21
21
  datashare_python/cli/task.py,sha256=8mvKGS21bZ14BgZ0Uo-dfameljkaI2ZBha80ywCy-E8,5822
22
22
  datashare_python/cli/utils.py,sha256=p69CQb0zfixuyBkiZprhdMCc_NuYwXyAn6vC9H1UzAw,911
23
23
  datashare_python/cli/worker.py,sha256=eIMgUatSmpQpeu0MSMMKBrmx3GWm_eQ-aLfVrgl513o,5773
24
- datashare_python-0.9.3.dist-info/METADATA,sha256=so2jMCca80sY-wvwFxOap74spnTAi5YMtGxloKfdCOU,1043
25
- datashare_python-0.9.3.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
26
- datashare_python-0.9.3.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
- datashare_python-0.9.3.dist-info/RECORD,,
24
+ datashare_python-0.9.5.dist-info/METADATA,sha256=TgwTWRrqBtMzaL88qum06LC0rj4RxzuaN80DrNnwt_Q,1043
25
+ datashare_python-0.9.5.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
26
+ datashare_python-0.9.5.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
+ datashare_python-0.9.5.dist-info/RECORD,,