mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Cleanup sonobuoy logging
This commit is contained in:
parent
622b1ca7b4
commit
75dbce574b
@ -53,10 +53,8 @@ dump-logs() {
|
||||
for container in ${CONTAINERS}; do
|
||||
docker cp ${container}:/var/lib/rancher/k3s/agent/containerd/containerd.log ${OUTPUT}/${container}-containerd.log
|
||||
docker logs ${container} >${OUTPUT}/${container}.log 2>&1
|
||||
if [ ${exit_status} -ne 0 ]; then
|
||||
cat ${OUTPUT}/${container}-containerd.log
|
||||
cat ${OUTPUT}/${container}.log
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user