1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

GO-1533: Better debug server; add readme

This commit is contained in:
Sergey 2023-06-22 12:22:04 +05:00
parent 4e585b8632
commit 69a05224b8
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
4 changed files with 51 additions and 1 deletions

View file

@ -96,6 +96,11 @@ If you want to change the default port(9999):
----
### Useful tools for debug
#### Debug server
Use env var ANYDEBUG=address to enable debugging HTTP server. For example: `ANYDEBUG=:6061` will start debug server on port 6061
You can find all endpoints in `/debug` page. For example: http://localhost:6061/debug
#### gRPC logging
In order to log mw gRPC requests/responses use `ANYTYPE_GRPC_LOG` env var:
- `ANYTYPE_LOG_LEVEL="grpc=DEBUG" ANYTYPE_GRPC_LOG=1` - log only method names