reach_commons 0.18.32__py3-none-any.whl → 0.18.34__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.
@@ -8,4 +8,10 @@ def init_logger(name: str):
8
8
  format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
9
9
  force=True,
10
10
  )
11
+ for noisy in ("botocore", "boto3", "urllib3"):
12
+ logging.getLogger(noisy).setLevel(logging.WARNING)
11
13
  return logging.getLogger(name)
14
+
15
+
16
+ def log_with_event(level_fn, msg, event):
17
+ level_fn(f"{msg} | event={event}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reach_commons
3
- Version: 0.18.32
3
+ Version: 0.18.34
4
4
  Summary: Reach Commons is a versatile utility library designed to streamline and enhance development workflows within the Reach ecosystem.
5
5
  License: MIT
6
6
  Author: Engineering
@@ -4,7 +4,7 @@ reach_commons/app_logging/http_logger.py,sha256=mljQCdmsmtD2HsC_gsFwZAxPlAiLPYVi
4
4
  reach_commons/app_logging/log_deprecated_endpoints.py,sha256=yXs9Jh7V0_0cMnzwXV9WRgCdFXe_tybcFE1eQl2KNC4,2020
5
5
  reach_commons/app_logging/logger.py,sha256=Iq2XTl1zLgHDmVsTMdlFadcYJOqQNhBcFSscacKs_Xs,2295
6
6
  reach_commons/app_logging/logging_config.py,sha256=Y1JaZOoQBWgQjkOqYmeDRIm0p2eCOl3yTzgsgqyqm8I,1539
7
- reach_commons/app_logging/logging_utils.py,sha256=X1kvfuLk0nXCpHWVrLhnY4SldebeEJwFgYL7Umzuu8U,298
7
+ reach_commons/app_logging/logging_utils.py,sha256=zeDRm3DugbuqMIDstTsVyH5xU_ZV-WAcCINxb6qYdJY,491
8
8
  reach_commons/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  reach_commons/clients/event_processor.py,sha256=KmYF0kuZxLmHQjJASXMr5jz2D_D3WNHB0c4QOlZo1_E,2024
10
10
  reach_commons/clients/hubspot.py,sha256=ntAzvwoaq78MkKaVoZ7geND-AafAzccNnJogfJDahVA,5497
@@ -28,6 +28,6 @@ reach_commons/redis_manager.py,sha256=SgUtdtt0eV4bUwsWDankIa9Bjfgcm2DKcmVMQT6ptF
28
28
  reach_commons/sms_smart_encoding.py,sha256=92y0RmZ0l4ONHpC9qeO5KfViSNq64yE2rc7lhNDSZqE,1241
29
29
  reach_commons/utils.py,sha256=dMgKIGqTgoSItuBI8oz81gKtW3qi21Jkljv9leS_V88,8475
30
30
  reach_commons/validations.py,sha256=CJdWg8qc9ILe3rYHYTLdr2upRspsM_8ghhm4IXX4Pg8,1028
31
- reach_commons-0.18.32.dist-info/METADATA,sha256=zYgttMUX3HoudrOyHqvn1UIUMfF7FpIirc_PPZyf9rk,1965
32
- reach_commons-0.18.32.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
33
- reach_commons-0.18.32.dist-info/RECORD,,
31
+ reach_commons-0.18.34.dist-info/METADATA,sha256=H3gO5sDr0W25-jf9UUwDDE7jk6jef5jMCoRw5Q7cYYc,1965
32
+ reach_commons-0.18.34.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
33
+ reach_commons-0.18.34.dist-info/RECORD,,