update refs to uncaught-logs in docs/tests

This commit is contained in:
Daniel Barlow 2024-10-06 13:46:14 +01:00
parent 2d7e6188ac
commit 4cc0add2ad
3 changed files with 7 additions and 7 deletions

View File

@ -97,7 +97,7 @@ time. For example:
Logs Logs
==== ====
Logs for all services are collated into :file:`/run/uncaught-logs/current`. Logs for all services are collated into :file:`/run/log/current`.
The log file is rotated when it reaches a threshold size, into another The log file is rotated when it reaches a threshold size, into another
file in the same directory whose name contains a TAI64 timestamp. file in the same directory whose name contains a TAI64 timestamp.
@ -108,7 +108,7 @@ human-readable format, use :command:`s6-tai64nlocal`.
.. code-block:: console .. code-block:: console
# ls -l /run/uncaught-logs/ # ls -l /run/log/
-rw-r--r-- 1 0 lock -rw-r--r-- 1 0 lock
-rw-r--r-- 1 0 state -rw-r--r-- 1 0 state
-rwxr--r-- 1 98059 @4000000000025cb629c311ac.s -rwxr--r-- 1 98059 @4000000000025cb629c311ac.s
@ -122,10 +122,10 @@ human-readable format, use :command:`s6-tai64nlocal`.
-rwxr--r-- 1 98023 @4000000000027e6f0ed24a6c.s -rwxr--r-- 1 98023 @4000000000027e6f0ed24a6c.s
-rw-r--r-- 1 42374 current -rw-r--r-- 1 42374 current
# tail -2 /run/uncaught-logs/current # tail -2 /run/log/current
@40000000000284f130747343 wan.link.pppoe Connect: ppp0 <--> /dev/pts/0 @40000000000284f130747343 wan.link.pppoe Connect: ppp0 <--> /dev/pts/0
@40000000000284f230acc669 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accomp>] @40000000000284f230acc669 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accomp>]
# tail -2 /run/uncaught-logs/current | s6-tai64nlocal # tail -2 /run/log/current | s6-tai64nlocal
1970-01-02 21:51:45.828598156 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accom 1970-01-02 21:51:45.828598156 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accom
p>] p>]
1970-01-02 21:51:48.832588765 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accom 1970-01-02 21:51:48.832588765 wan.link.pppoe sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x667a9594> <pcomp> <accom

View File

@ -71,7 +71,7 @@ stdin/stdout.
You should now see Linux boot messages and after a few seconds be You should now see Linux boot messages and after a few seconds be
presented with a root shell prompt. You can run commands to look at presented with a root shell prompt. You can run commands to look at
the filesystem, see what processes are running, view log messages (in the filesystem, see what processes are running, view log messages (in
:file:/run/uncaught-logs.current), etc. To kill the emulator, press ^P :file:/run/log/current), etc. To kill the emulator, press ^P
(Control P) then c to enter the "QEMU Monitor", then type ``quit`` at (Control P) then c to enter the "QEMU Monitor", then type ``quit`` at
the ``(qemu)`` prompt. the ``(qemu)`` prompt.

View File

@ -14,7 +14,7 @@ expect {
} }
expect "#" expect "#"
while { $FINISHED < 10 } { while { $FINISHED < 10 } {
send "date && grep AP-ENABLED /run/uncaught-logs/* || echo \$NOT\r\n" send "date && grep AP-ENABLED /run/log/* || echo \$NOT\r\n"
expect { expect {
"wlan0: AP-ENABLED" { set FINISHED 999; set EXIT 0; } "wlan0: AP-ENABLED" { set FINISHED 999; set EXIT 0; }
@ -24,7 +24,7 @@ while { $FINISHED < 10 } {
} }
if { $EXIT > 0 } { if { $EXIT > 0 } {
send "tail -40 /run/uncaught-logs/current\r\n" send "tail -40 /run/log/current\r\n"
expect "#" expect "#"
} }
exit $EXIT exit $EXIT