Skip to content

Commit

Permalink
silence elastic_transport.transport in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
toluaina committed Dec 19, 2023
1 parent 9ff7483 commit 400e608
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 100 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:

- repo: https://github.com/psf/black
rev: 23.11.0
rev: 23.12.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.13.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
1 change: 1 addition & 0 deletions pgsync/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def _get_logging_config(silent_loggers: Optional[str] = None):
"urllib3.connectionpool",
"urllib3.util.retry",
"elasticsearch",
"elastic_transport.transport",
]
)

Expand Down
55 changes: 7 additions & 48 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@
#
# pip-compile --output-file=requirements/base.txt requirements/base.in
#
annotated-types==0.6.0
# via pydantic
async-timeout==4.0.3
# via redis
boto3==1.33.11
boto3==1.34.4
# via -r requirements/base.in
botocore==1.33.11
botocore==1.34.4
# via
# boto3
# s3transfer
cerberus==1.3.5
# via plette
certifi==2023.11.17
# via
# elastic-transport
Expand All @@ -25,25 +21,21 @@ charset-normalizer==3.3.2
# via requests
click==8.1.7
# via -r requirements/base.in
distlib==0.3.7
# via requirementslib
docopt==0.6.2
# via pipreqs
elastic-transport==8.10.0
elastic-transport==8.11.0
# via elasticsearch
elasticsearch==8.11.1
# via
# -r requirements/base.in
# elasticsearch-dsl
elasticsearch-dsl==8.11.0
# via -r requirements/base.in
environs==9.5.0
environs==10.0.0
# via -r requirements/base.in
greenlet==3.0.2
# via sqlalchemy
idna==3.6
# via requests
isort==5.13.0
isort==5.13.2
# via -r requirements/base.in
jmespath==1.0.1
# via
Expand All @@ -57,22 +49,8 @@ opensearch-py==2.4.2
# via opensearch-dsl
packaging==23.2
# via marshmallow
pep517==0.13.1
# via requirementslib
pip-api==0.0.30
# via isort
pipreqs==0.4.13
# via isort
platformdirs==4.1.0
# via requirementslib
plette[validation]==0.4.4
# via requirementslib
psycopg2-binary==2.9.9
# via -r requirements/base.in
pydantic==2.5.2
# via requirementslib
pydantic-core==2.14.5
# via pydantic
python-dateutil==2.8.2
# via
# botocore
Expand All @@ -89,13 +67,9 @@ requests==2.31.0
# via
# opensearch-py
# requests-aws4auth
# requirementslib
# yarg
requests-aws4auth==1.2.3
# via -r requirements/base.in
requirementslib==3.0.0
# via isort
s3transfer==0.8.2
s3transfer==0.9.0
# via boto3
six==1.16.0
# via
Expand All @@ -107,26 +81,11 @@ sqlalchemy==2.0.23
# via -r requirements/base.in
sqlparse==0.4.4
# via -r requirements/base.in
tomli==2.0.1
# via pep517
tomlkit==0.12.3
# via
# plette
# requirementslib
typing-extensions==4.9.0
# via
# pydantic
# pydantic-core
# sqlalchemy
# via sqlalchemy
urllib3==1.26.18
# via
# botocore
# elastic-transport
# opensearch-py
# requests
yarg==0.1.9
# via pipreqs

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
85 changes: 35 additions & 50 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
#
# pip-compile --output-file=requirements/dev.txt requirements/dev.in
#
annotated-types==0.6.0
# via pydantic
aiohttp==3.9.1
# via black
aiosignal==1.3.1
# via aiohttp
async-timeout==4.0.3
# via redis
black==23.11.0
# via
# aiohttp
# redis
attrs==23.1.0
# via aiohttp
black==23.12.0
# via -r requirements/dev.in
boto3==1.33.11
boto3==1.34.4
# via -r requirements/base.in
botocore==1.33.11
botocore==1.34.4
# via
# boto3
# s3transfer
cerberus==1.3.5
# via plette
certifi==2023.11.17
# via
# elastic-transport
Expand All @@ -31,45 +35,47 @@ click==8.1.7
# via
# -r requirements/base.in
# black
coverage[toml]==7.3.2
coverage[toml]==7.3.3
# via
# -r requirements/dev.in
# pytest-cov
distlib==0.3.7
# via
# requirementslib
# virtualenv
docopt==0.6.2
# via pipreqs
elastic-transport==8.10.0
distlib==0.3.8
# via virtualenv
elastic-transport==8.11.0
# via elasticsearch
elasticsearch==8.11.1
# via
# -r requirements/base.in
# elasticsearch-dsl
elasticsearch-dsl==8.11.0
# via -r requirements/base.in
environs==9.5.0
environs==10.0.0
# via -r requirements/base.in
exceptiongroup==1.2.0
# via pytest
faker==20.1.0
faker==21.0.0
# via -r requirements/dev.in
filelock==3.13.1
# via virtualenv
flake8==6.1.0
# via -r requirements/dev.in
freezegun==1.3.1
freezegun==1.4.0
# via -r requirements/dev.in
frozenlist==1.4.1
# via
# aiohttp
# aiosignal
greenlet==3.0.2
# via sqlalchemy
identify==2.5.33
# via pre-commit
idna==3.6
# via requests
# via
# requests
# yarl
iniconfig==2.0.0
# via pytest
isort==5.13.0
isort==5.13.2
# via -r requirements/base.in
jmespath==1.0.1
# via
Expand All @@ -81,6 +87,10 @@ mccabe==0.7.0
# via flake8
mock==5.1.0
# via -r requirements/dev.in
multidict==6.0.4
# via
# aiohttp
# yarl
mypy-extensions==1.0.0
# via black
nodeenv==1.8.0
Expand All @@ -94,21 +104,12 @@ packaging==23.2
# black
# marshmallow
# pytest
pathspec==0.12.0
pathspec==0.12.1
# via black
pep517==0.13.1
# via requirementslib
pip-api==0.0.30
# via isort
pipreqs==0.4.13
# via isort
platformdirs==4.1.0
# via
# black
# requirementslib
# virtualenv
plette[validation]==0.4.4
# via requirementslib
pluggy==1.3.0
# via pytest
pre-commit==3.6.0
Expand All @@ -117,10 +118,6 @@ psycopg2-binary==2.9.9
# via -r requirements/base.in
pycodestyle==2.11.1
# via flake8
pydantic==2.5.2
# via requirementslib
pydantic-core==2.14.5
# via pydantic
pyflakes==3.1.0
# via flake8
pytest==7.4.3
Expand Down Expand Up @@ -152,13 +149,9 @@ requests==2.31.0
# via
# opensearch-py
# requests-aws4auth
# requirementslib
# yarg
requests-aws4auth==1.2.3
# via -r requirements/base.in
requirementslib==3.0.0
# via isort
s3transfer==0.8.2
s3transfer==0.9.0
# via boto3
six==1.16.0
# via
Expand All @@ -174,17 +167,10 @@ tomli==2.0.1
# via
# black
# coverage
# pep517
# pytest
tomlkit==0.12.3
# via
# plette
# requirementslib
typing-extensions==4.9.0
# via
# black
# pydantic
# pydantic-core
# sqlalchemy
urllib3==1.26.18
# via
Expand All @@ -194,9 +180,8 @@ urllib3==1.26.18
# requests
virtualenv==20.25.0
# via pre-commit
yarg==0.1.9
# via pipreqs
yarl==1.9.4
# via aiohttp

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools

0 comments on commit 400e608

Please sign in to comment.