@@ -2734,9 +2734,8 @@ function sendToNotify {
2734
2734
}
2735
2735
2736
2736
function start_func() {
2737
- current_date=$( date +' %Y-%m-%d %H:%M:%S' )
2738
2737
printf " ${bgreen} #######################################################################"
2739
- notification " ${2} " info $current_date
2738
+ notification " ${2} " info
2740
2739
echo " [$current_date ] Start function: ${1} " >> " ${LOGFILE} "
2741
2740
start=$( date +%s)
2742
2741
}
@@ -2745,16 +2744,14 @@ function end_func() {
2745
2744
touch $called_fn_dir /.${2}
2746
2745
end=$( date +%s)
2747
2746
getElapsedTime $start $end
2748
- current_date=$( date +' %Y-%m-%d %H:%M:%S' )
2749
- notification " ${2} Finished in ${runtime} " info $current_date
2747
+ notification " ${2} Finished in ${runtime} " info
2750
2748
echo " [$current_date ] End function: ${2} " >> " ${LOGFILE} "
2751
2749
printf " ${bblue} [$current_date ] ${1} ${reset} \n"
2752
2750
printf " ${bgreen} #######################################################################${reset} \n"
2753
2751
}
2754
2752
2755
2753
function start_subfunc() {
2756
- current_date=$( date +' %Y-%m-%d %H:%M:%S' )
2757
- notification " ${2} " info $current_date
2754
+ notification " ${2} " info
2758
2755
echo " [$current_date ] Start subfunction: ${1} " >> " ${LOGFILE} "
2759
2756
start_sub=$( date +%s)
2760
2757
}
@@ -2763,8 +2760,7 @@ function end_subfunc() {
2763
2760
touch $called_fn_dir /.${2}
2764
2761
end_sub=$( date +%s)
2765
2762
getElapsedTime $start_sub $end_sub
2766
- current_date=$( date +' %Y-%m-%d %H:%M:%S' )
2767
- notification " ${1} in ${runtime} " good $current_date
2763
+ notification " ${1} in ${runtime} " good
2768
2764
echo " [$current_date ] End subfunction: ${1} " >> " ${LOGFILE} "
2769
2765
}
2770
2766
0 commit comments