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:
parent
4e585b8632
commit
69a05224b8
4 changed files with 51 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue