Skip to content

Commit 9c6bd93

Browse files
MacsInSpaceclaude
andcommitted
collect_logs: say when the cockpit display is simply not in map view
The display table only lists context 70 while the cockpit is in map view, so a capture from another view looks like a unit that cannot show a map. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent bda4d85 commit 9c6bd93

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎scripts/collect_logs.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ for c in gs gd; do
3232
( cd /eso && LD_PRELOAD="$HERE/lib/libdmdt_flush.so" LD_LIBRARY_PATH=/eso/lib:/lib:/usr/lib \
3333
IPL_CONFIG_DIR=/etc/eso/production ./bin/apps/dmdt $c ) > $OUT/dmdt_$c.txt 2>&1
3434
done
35+
# The cockpit display (context 70, window 33) only appears in 'gs' while the
36+
# cockpit is in map view. Say so in the file, so a capture taken in another
37+
# view is not read as a unit that cannot show a map.
38+
if grep -q 'context id: 70' $OUT/dmdt_gs.txt 2>/dev/null; then
39+
echo "NOTE: the cockpit display (context 70) is registered." >> $OUT/dmdt_gs.txt
40+
else
41+
echo "NOTE: no cockpit display (context 70) at this moment. That is normal" >> $OUT/dmdt_gs.txt
42+
echo "unless the cockpit was in map view when these logs were saved." >> $OUT/dmdt_gs.txt
43+
fi
3544
# CarPlay map: the supervisor, its player, and harman-f's hook state.
3645
mkdir -p $OUT/carplay
3746
cp /tmp/carplay_cluster.log /tmp/stream-player-carplay.log /tmp/altscreen111.log \

0 commit comments

Comments
 (0)