Skip to content

Commit

Permalink
Revert "temporarily turn on ndb debugging for lookups"
Browse files Browse the repository at this point in the history
This reverts commit 517d363.
  • Loading branch information
snarfed committed Jan 27, 2025
1 parent 77e79d2 commit 18febbd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env_variables:
# ...or test against labeler.dholms.xyz / did:plc:vzxheqfwpbi3lxbgdh22js66

# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
NDB_DEBUG: true
# NDB_DEBUG: true

handlers:

Expand Down
2 changes: 1 addition & 1 deletion atproto_hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ env_variables:
SUBSCRIBE_REPOS_BATCH_DELAY: 10

# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
NDB_DEBUG: true
# NDB_DEBUG: true

# need only one instance so that new commits can be delivered to subscribeRepos
# subscribers in memory
Expand Down
10 changes: 5 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

# for debugging ndb. also needs NDB_DEBUG env var, set in *.yaml.
# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
logging.getLogger('google.cloud').propagate = True
logging.getLogger('google.cloud.ndb').setLevel(logging.DEBUG)
# logging.getLogger('google.cloud').propagate = True
# 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)

Expand Down Expand Up @@ -71,9 +71,9 @@ def only_lookups(record):

return False

api_logger = logging.getLogger('google.cloud.ndb._datastore_api')
api_logger.setLevel(logging.DEBUG)
api_logger.addFilter(only_lookups)
# api_logger = logging.getLogger('google.cloud.ndb._datastore_api')
# api_logger.setLevel(logging.DEBUG)
# api_logger.addFilter(only_lookups)

os.environ.setdefault('APPVIEW_HOST', 'api.bsky.local')
os.environ.setdefault('BGS_HOST', 'bgs.bsky.local')
Expand Down
2 changes: 1 addition & 1 deletion router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ env_variables:
MEMCACHE_HOST: '10.126.144.3'

# https://github.com/googleapis/python-ndb/blob/c55ec62b5153787404488b046c4bf6ffa02fee64/google/cloud/ndb/utils.py#L78-L81
NDB_DEBUG: true
# NDB_DEBUG: true

automatic_scaling:
min_num_instances: 1
Expand Down

0 comments on commit 18febbd

Please sign in to comment.