Wykres commitów

24 Commity (47d77a03cb5d078ee713a5ac1be22a9bf507d3f7)

Autor SHA1 Wiadomość Data
Ryan Barrett 47d77a03cb
ndb logging: add arroba to traceback stack frames 2025-01-27 21:21:41 -08:00
Ryan Barrett 18febbd3c5
Revert "temporarily turn on ndb debugging for lookups"
This reverts commit 517d363834.
2025-01-26 22:35:49 -08:00
Ryan Barrett 517d363834
temporarily turn on ndb debugging for lookups 2025-01-26 21:40:20 -08:00
Ryan Barrett 32a60c980c
updates for ndb context caching everything: Object.new/changed logic, tests
for #1149, 18aa302da
2025-01-13 16:19:32 -08:00
Ryan Barrett ffd2be6c4b
turn google.cloud logging propagate on; fixes ndb logs!
google.cloud logging propagate is why I haven't been able to get ndb logs to
show up! phew, finally found it.

8c2c5a798a/google/cloud/logging_v2/handlers/handlers.py (L302-L314)
2025-01-13 12:43:02 -08:00
Ryan Barrett 9b9075e116
turn off ndb datastore lookup logging 2025-01-11 17:22:14 -08:00
Ryan Barrett 3996c5e1b8
more ndb logging config 2025-01-11 15:29:06 -08:00
Ryan Barrett b4270a5d4e
temporarily turn on ndb logging for cache and lookups
for #1149
2024-12-19 12:28:51 -08:00
Ryan Barrett 214f0c352d
set atproto_firehose log level to debug
for receive-atproto-firehose log-based metric
2024-12-19 09:48:39 -08:00
Ryan Barrett d3490cab82
set up, but don't enable, ndb debug logging
for #1149
2024-12-18 16:00:20 -08:00
Ryan Barrett d38c3953b6
config: bump up common module's log level to info 2024-12-11 20:33:32 -08:00
Ryan Barrett 44077bb64f
oops, config bug fix for bfab5f8250 2024-12-03 16:46:22 -08:00
Ryan Barrett bfab5f8250
flask config: bump MAX_FORM_MEMORY_SIZE up from 500KiB to 10MiB
for #1593
2024-12-03 16:45:14 -08:00
Ryan Barrett 88cbe3b7b4
cache models.get_originals in memcache with new memcache_memoize decorator
for #1149
2024-07-30 14:50:33 -07:00
Ryan Barrett c0c801de58
drop bluesky sandbox env vars, it's dead now
https://docs.bsky.app/blog/federation-sandbox
2024-07-22 20:44:18 -07:00
Ryan Barrett b904654335
flask app config: only setup prod logging when in prod 2024-07-22 15:03:31 -07:00
Ryan Barrett e8ab1717fb
set default logging level to info
for https://github.com/snarfed/bridgy-fed/issues/1060
2024-07-18 14:41:42 -07:00
Ryan Barrett 4a659ea04e
remove unused vestigial appengine_config.py file 2024-07-18 14:16:28 -07:00
Ryan Barrett f1713e68d9
drop a bunch of log messages from info to debug
...and other logging tweaks

for https://github.com/snarfed/bridgy-fed/issues/1060
2024-07-18 14:15:12 -07:00
Ryan Barrett bd7cfa20f6
hub: implement atproto-commit task handler, other misc setup 2023-09-09 14:02:19 -07:00
Ryan Barrett ab1c28ee4d
noop, lint fixes from flake8
remaining:

$ flake8 --extend-ignore=E501 *.py tests/*.py
"pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'"
Run flake8 with greater verbosity to see more details
activitypub.py:15:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
activitypub.py:36:1: F401 'web' imported but unused
activitypub.py:48:1: E302 expected 2 blank lines, found 1
activitypub.py:51:9: F811 redefinition of unused 'web' from line 36
app.py:6:1: F401 'flask_app.app' imported but unused
app.py:9:1: F401 'activitypub' imported but unused
app.py:9:1: F401 'convert' imported but unused
app.py:9:1: F401 'follow' imported but unused
app.py:9:1: F401 'pages' imported but unused
app.py:9:1: F401 'redirect' imported but unused
app.py:9:1: F401 'superfeedr' imported but unused
app.py:9:1: F401 'ui' imported but unused
app.py:9:1: F401 'webfinger' imported but unused
app.py:9:1: F401 'web' imported but unused
app.py:9:1: F401 'xrpc_actor' imported but unused
app.py:9:1: F401 'xrpc_feed' imported but unused
app.py:9:1: F401 'xrpc_graph' imported but unused
app.py:9:19: E401 multiple imports on one line
models.py:19:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
models.py:364:31: E114 indentation is not a multiple of four (comment)
models.py:364:31: E116 unexpected indentation (comment)
protocol.py:17:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
redirect.py:26:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
web.py:18:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
webfinger.py:13:1: F401 'oauth_dropins.webutil.util.json_loads' imported but unused
webfinger.py:110:13: E122 continuation line missing indentation or outdented
webfinger.py:111:13: E122 continuation line missing indentation or outdented
webfinger.py:131:13: E122 continuation line missing indentation or outdented
webfinger.py:132:13: E122 continuation line missing indentation or outdented
webfinger.py:133:13: E122 continuation line missing indentation or outdented
webfinger.py:134:13: E122 continuation line missing indentation or outdented
tests/__init__.py:2:1: F401 'oauth_dropins.webutil.tests' imported but unused
tests/test_follow.py:11:1: F401 'oauth_dropins.webutil.util.json_dumps' imported but unused
tests/test_follow.py:14:1: F401 '.testutil.Fake' imported but unused
tests/test_models.py:156:15: E122 continuation line missing indentation or outdented
tests/test_models.py:157:15: E122 continuation line missing indentation or outdented
tests/test_models.py:158:11: E122 continuation line missing indentation or outdented
tests/test_web.py:12:1: F401 'oauth_dropins.webutil.util.json_dumps' imported but unused
tests/test_web.py:17:1: F401 '.testutil' imported but unused
tests/test_web.py:1513:13: E128 continuation line under-indented for visual indent
tests/test_web.py:1514:9: E124 closing bracket does not match visual indentation
tests/testutil.py:106:1: E402 module level import not at top of file
tests/testutil.py:107:1: E402 module level import not at top of file
tests/testutil.py:108:1: E402 module level import not at top of file
tests/testutil.py:109:1: E402 module level import not at top of file
tests/testutil.py:110:1: E402 module level import not at top of file
tests/testutil.py:301:24: E203 whitespace before ':'
tests/testutil.py:301:25: E701 multiple statements on one line (colon)
tests/testutil.py:301:25: E231 missing whitespace after ':'
2023-06-20 11:29:31 -07:00
Ryan Barrett a2d9dcb4a9
cache more aggressively: bump expiration up to 60s, threshold to 3k
for #378
2023-01-24 16:13:22 -08:00
Ryan Barrett c50f0e0106
add follow UI to user/[domain]/following
for #351
2023-01-07 09:34:55 -08:00
Ryan Barrett da6288972a
extract Flask app config out of app.py into config.py
notably, this now disables the request cache during tests
2022-11-21 18:43:50 -08:00