Skip to content

Commit 1dc29b7

Browse files
committed
Avoid collecting dmesg when running as daemon
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 94df29b commit 1dc29b7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

hack/local-up-cluster.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -802,12 +802,14 @@ function wait_coredns_available(){
802802
exit 1
803803
fi
804804

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

808-
# loop through and grab all things in dmesg
809-
dmesg > "${LOG_DIR}/dmesg.log"
810-
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
809+
# loop through and grab all things in dmesg
810+
dmesg > "${LOG_DIR}/dmesg.log"
811+
dmesg -w --human >> "${LOG_DIR}/dmesg.log" &
812+
fi
811813
}
812814

813815
function start_kubelet {

0 commit comments

Comments
 (0)