From 3996c5e1b8a22e88e3b02d93aff88417a209e2ee Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sat, 11 Jan 2025 15:29:06 -0800 Subject: [PATCH] more ndb logging config --- config.py | 1 + requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 585901c5..7acce848 100644 --- a/config.py +++ b/config.py @@ -44,6 +44,7 @@ # https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81 # logging.getLogger('google.cloud.ndb').setLevel(logging.DEBUG) logging.getLogger('google.cloud.ndb._cache').setLevel(logging.DEBUG) +logging.getLogger('google.cloud.ndb.global_cache').setLevel(logging.DEBUG) KEYS_ID_RE = re.compile(f'name: "([^"]+)"') diff --git a/requirements.txt b/requirements.txt index ce95a54b..2ca22734 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,8 @@ git+https://github.com/snarfed/lexrpc.git#egg=lexrpc git+https://github.com/snarfed/mox3.git#egg=mox3 git+https://github.com/snarfed/negotiator.git@py3#egg=negotiator git+https://github.com/snarfed/oauth-dropins.git#egg=oauth_dropins +# temporary, TODO: remove after datastore caching is debugged +git+https://github.com/snarfed/python-ndb.git@global-cache-logging#egg=google-cloud-ndb # TODO: switch back to pypi as soon as a new release is cut after 4.0.0 # that includes https://github.com/pinterest/pymemcache/pull/471 git+https://github.com/pinterest/pymemcache.git#egg=pymemcache @@ -49,7 +51,6 @@ google-cloud-datastore==2.20.1 google-cloud-dns==0.35.0 google-cloud-error-reporting==1.11.1 google-cloud-logging==3.11.3 -google-cloud-ndb==2.3.2 google-cloud-tasks==2.18.0 googleapis-common-protos==1.66.0 grapheme==0.6.0