Skip to content

Commit d8c7e55

Browse files
committed
Reduce logging to avoid logging to fill ramdisk
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 02bafe8 commit d8c7e55

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

systemvm/debian/opt/cloud/templates/check_heartbeat.sh.templ

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ then
3333
fi
3434
thischeck=$(date +%s)
3535
checkdiff=$(($thischeck - $lastcheck))
36-
echo "thischeck: $thischeck, lastcheck: $lastcheck. this heartbeat: $thistime, last heartbeat: $lasttime, time diff: $diff" >> $ROUTER_LOG
3736
if [ $checkdiff -ge 0 ] && [ $checkdiff -lt 30 ]
3837
then
39-
echo time duration after last check is less than 30 seconds, ignored >> $ROUTER_LOG
4038
exit
4139
fi
40+
echo "thischeck: $thischeck, lastcheck: $lastcheck. this heartbeat: $thistime, last heartbeat: $lasttime, time diff: $diff" > $ROUTER_LOG
4241
echo $thischeck > $CHECKTIME_FILE
4342
s=0
4443
if [ $diff -ge 30 ]

0 commit comments

Comments
 (0)