datashare-python 0.9.2__py3-none-any.whl → 0.9.4__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.
@@ -68,7 +68,7 @@ class WorkerFilter(logging.Filter):
68
68
 
69
69
  def filter(self, record: logging.LogRecord) -> bool:
70
70
  if not hasattr(record, "message") and record.msg is not None:
71
- setattr(record, "msg", record.msg) # noqa: B010
71
+ setattr(record, "msg", record.getMessage()) # noqa: B010
72
72
  if self.worker_id is not None:
73
73
  record.worker_id = self.worker_id
74
74
  if workflow.in_workflow():
@@ -121,8 +121,9 @@ class LogFmtFormatter(logging.Formatter):
121
121
  record.exc_text = self.formatException(record.exc_info)
122
122
  logged["exc_info"] = record.exc_text
123
123
  for k, v in record.__dict__.items():
124
- if k in _LOGGED_ATTRIBUTES and k != "exc_info":
124
+ if k in _LOGGED_ATTRIBUTES and k not in {"exc_info", "msg"}:
125
125
  logged[k] = _encode_value(v)
126
+ logged["msg"] = _encode_value(record.getMessage())
126
127
  return " ".join(f"{k}={v}" for k, v in sorted(logged.items()))
127
128
 
128
129
 
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.9.2
3
+ Version: 0.9.4
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/
@@ -8,20 +8,20 @@ datashare_python/dependencies.py,sha256=JdKZX3TlbYQk1YLvscGEdXQNJ9TFjtbxmYwlxNyq
8
8
  datashare_python/discovery.py,sha256=dKCZFTa3R-Weg4LL39wL85vstsol6tTh3g0jbpeOh4E,7122
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=pNPdxa_dK9GWktX-MOKsr7F6n9czj_jj3P4zhdtgPD4,4698
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=WI-FG8qtxyuP2DzPDawL04hCRBPAjEoQe_E_KIh1N9w,289266
17
+ datashare_python/worker-template.tar.gz,sha256=ik1-mrSoiyy96cV9w7SVjietcpyxMNonigPVq6aROEA,289265
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.2.dist-info/METADATA,sha256=Xb2zHAt7Vd623kVyc9Z7_K868GUsZe9T3NoTJzbOp8I,1043
25
- datashare_python-0.9.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
26
- datashare_python-0.9.2.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
- datashare_python-0.9.2.dist-info/RECORD,,
24
+ datashare_python-0.9.4.dist-info/METADATA,sha256=L4ObyW8z5tpeYPk6VvpiRX4QJXnO2yjEYZcAZWx0gps,1043
25
+ datashare_python-0.9.4.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
26
+ datashare_python-0.9.4.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
+ datashare_python-0.9.4.dist-info/RECORD,,