Skip to content

Commit bd46d9e

Browse files
committed
doc: describe debug log directory feature
On-behalf-of: SAP stefan.kober@sap.com
1 parent d482b2a commit bd46d9e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ heavy memory load use:
3838
$ nix run -L .#tests.x86_64-linux.long_migration_with_load.driver
3939
```
4040

41+
### Obtaining debug logs
42+
43+
To obtain debug logs from failing test cases automatically, set the
44+
`DBG_LOG_DIR` environment variable:
45+
46+
```bash
47+
DBG_LOG_DIR="./logs" nix run .#tests.x86_64-linux.default.driver
48+
```
49+
50+
After the run is over, you can find relevant Libvirt and Cloud Hypervisor logs
51+
in the `DBG_LOG_DIR`.
52+
4153
## Using a Custom Libvirt or Cloud Hypervisor
4254

4355
To test against a specific version or local build, you should update your

0 commit comments

Comments
 (0)