mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
gha: cri-containerd: Group containerd logs
This improves readability in case of failures by a lot. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
9e898701f5
commit
6c8b2ffa60
@ -130,10 +130,11 @@ trap cleanup EXIT
|
|||||||
function err_report() {
|
function err_report() {
|
||||||
local log_file="${REPORT_DIR}/containerd.log"
|
local log_file="${REPORT_DIR}/containerd.log"
|
||||||
if [ -f "$log_file" ]; then
|
if [ -f "$log_file" ]; then
|
||||||
echo "ERROR: containerd log :"
|
echo "::group::ERROR: containerd log :"
|
||||||
echo "-------------------------------------"
|
echo "-------------------------------------"
|
||||||
cat "${log_file}"
|
cat "${log_file}"
|
||||||
echo "-------------------------------------"
|
echo "-------------------------------------"
|
||||||
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user