mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-10 13:54:12 +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>
(cherry picked from commit 6c8b2ffa60
)
This commit is contained in:
parent
3c7597f4ba
commit
2fea5a5f8b
@ -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