@@ -878,6 +878,7 @@ function notify_success(){
878878 -d ' {"content": "' " $DISCORD_SUBJECT " ' "}' \
879879 " $DISCORD_WEBHOOK_URL "
880880 fi
881+ mklog " INFO: " $SUBJECT " "
881882 }
882883
883884function notify_warning(){
@@ -900,6 +901,7 @@ function notify_warning(){
900901 if [ " $EMAIL_ADDRESS " ]; then
901902 trim_log < " $TMP_OUTPUT " | send_mail
902903 fi
904+ mklog " WARN: " $SUBJECT " "
903905 }
904906
905907function show_snapraid_info() {
@@ -1137,16 +1139,16 @@ check_snapraid_status() {
11371139 # Check for the "No sync is in progress" message
11381140 if echo " $snapraid_status_output " | grep -q " No sync is in progress" ; then
11391141 echo " Previous sync completed successfully, proceeding."
1140- mklog " Previous sync completed successfully, proceeding."
1142+ mklog " WARN: Previous sync completed successfully, proceeding."
11411143 SNAPRAID_STATUS=0
11421144
11431145 # Check for the "NOT fully synced" warning message
11441146 elif echo " $snapraid_status_output " | grep -q " WARNING! The array is NOT fully synced." ; then
1145- mklog " Warning : The array is NOT fully synced. Stopping the script."
1147+ mklog " WARN : The array is NOT fully synced. Stopping the script."
11461148 SNAPRAID_STATUS=1
11471149 else
11481150 # If neither message is found, handle the unknown state
1149- mklog " Warning : The array status is unknown. Stopping the script."
1151+ mklog " WARN : The array status is unknown. Stopping the script."
11501152 SNAPRAID_STATUS=2
11511153 fi
11521154}
0 commit comments