set up, but don't enable, ndb debug logging

for #1149
pull/1638/head
Ryan Barrett 2024-12-18 16:00:20 -08:00
rodzic 36cbbdd874
commit d3490cab82
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
4 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -36,7 +36,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:

Wyświetl plik

@ -34,8 +34,9 @@ env_variables:
MEMCACHE_HOST: '10.126.144.3'
ROLLBACK_WINDOW: 200000
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

Wyświetl plik

@ -23,6 +23,7 @@ if appengine_info.DEBUG:
ENV = 'development'
CACHE_TYPE = 'NullCache'
SECRET_KEY = 'sooper seekret'
else:
ENV = 'production'
CACHE_TYPE = 'SimpleCache'
@ -35,6 +36,11 @@ else:
for logger in ('oauth_dropins.webutil.webmention', 'lexrpc'):
logging.getLogger(logger).setLevel(logging.DEBUG)
# for debugging ndb. also needs NDB_DEBUG env var.
# 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)
os.environ.setdefault('APPVIEW_HOST', 'api.bsky.local')
os.environ.setdefault('BGS_HOST', 'bgs.bsky.local')
os.environ.setdefault('PLC_HOST', 'plc.bsky.local')

Wyświetl plik

@ -26,8 +26,9 @@ env_variables:
CHAT_HOST: api.bsky.chat
CHAT_DID: did:web:api.bsky.chat
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: 2