docs: unify code and shell cmd blocks

This commit is contained in:
Oliver Gugger committed 2021-01-22 09:14:09 +01:00
1 parent b20afc0679
commit 2c634bfaf3
19 files changed
+260 -257

No files matched your search

+8 -8
View File
@@ -15,14 +15,14 @@ data ahead of time.
You can enable debug logging in `lnd` by passing the `--debuglevel` flag. For
example, to increase the log level from `info` to `debug`:
```
$ lnd --debuglevel=debug
```shell
⛰ lnd --debuglevel=debug
```
You may also specify logging per-subsystem, like this:
```
$ lnd --debuglevel=<subsystem>=<level>,<subsystem2>=<level>,...
```shell
⛰ lnd --debuglevel=<subsystem>=<level>,<subsystem2>=<level>,...
```
## Capturing pprof data with `lnd`
@@ -34,14 +34,14 @@ Go. The profiler has negligible performance overhead during normal operations
To enable this ability, start `lnd` with the `--profile` option using a free port.
```
$ lnd --profile=9736
```shell
⛰ lnd --profile=9736
```
Now, with `lnd` running, you can use the pprof endpoint on port 9736 to collect
runtime profiling data. You can fetch this data using `curl` like so:
```
$ curl http://localhost:9736/debug/pprof/goroutine?debug=1
```shell
⛰ curl http://localhost:9736/debug/pprof/goroutine?debug=1
...
```