Skip to content

Commit 651dd88

Browse files
author
OpenShift Bot
authored
Merge pull request #14812 from stevekuznetsov/skuznets/better-syslog
Merged by openshift-bot
2 parents 49d3685 + 7c3c2f5 commit 651dd88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/lib/log/system.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ function os::log::system::clean_up() {
5555
return 0
5656
fi
5757

58+
if [[ ! -s "${SAR_LOGFILE:-}" ]]; then
59+
os::log::warning "No system logger data could be found, log file missing."
60+
return 0
61+
fi
62+
5863
local log_subset_flags=( "-b" "-B" "-u ALL" "-q" "-r" )
5964

6065
local log_subset_names=( "iops" "paging" "cpu" "queue" "memory" )

0 commit comments

Comments
 (0)