Skip to content

Commit

Permalink
Avoid collecting dmesg when running as daemon
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Sep 24, 2024
1 parent 94df29b commit 1dc29b7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hack/local-up-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -802,12 +802,14 @@ function wait_coredns_available(){
exit 1
fi

# bump log level
echo "6" | sudo tee /proc/sys/kernel/printk
if [[ "${ENABLE_DAEMON}" = false ]]; then
# bump log level
echo "6" | sudo tee /proc/sys/kernel/printk

# loop through and grab all things in dmesg
dmesg > "${LOG_DIR}/dmesg.log"
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
# loop through and grab all things in dmesg
dmesg > "${LOG_DIR}/dmesg.log"
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
fi
}

function start_kubelet {
Expand Down

0 comments on commit 1dc29b7

Please sign in to comment.