Skip to content

Commit

Permalink
more ndb logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 11, 2025
1 parent 2a4ac24 commit 3996c5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: "([^"]+)"')

Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3996c5e

Please sign in to comment.