Skip to content

Commit 1796b0a

Browse files
ericpromislowalextychan
authored andcommitted
Document where UI-based factory-reset output logs go.
Signed-off-by: Eric Promislow <[email protected]>
1 parent e510481 commit 1796b0a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/development/factory-reset.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
When `rdctl factory-reset` is launched from the UI, it writes its stdout into
2+
`TMP/rdctl-stdout.txt`
3+
4+
where on linux `TMP` is usually `/tmp`,
5+
6+
on macOS it's given by `$TMPDIR`
7+
8+
and on Windows by `%TEMP%`(command shell) or `$env:TEMP`(powershell).
9+
10+
11+
This is most useful during development. When the UI runs in debug mode, it spawns `rdctl factory-reset` with the `--verbose` option.
12+
13+
We can't write the output into the `logs` directory as `factory-reset` deletes it.

0 commit comments

Comments
 (0)