File tree Expand file tree Collapse file tree
openwrt-openwisp-monitoring/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ send_data() {
137137 while true ; do
138138 for file in " $TMP_DIR " /* ; do
139139 if [ ! -f " $file " ]; then
140- log -i -v " No data file found to send"
140+ log -i -v " No data file found to send. Checking after $INTERVAL seconds "
141141 trap handle_sigusr1 USR1
142142 # SIGUSR1 signal received, interrupt sleep and continue sending data
143143 sleep " $INTERVAL " &
@@ -181,9 +181,9 @@ send_data() {
181181 log -i -v " Data sent successfully"
182182 # check if agent was already failing or not to avoid repeating log messages
183183 if [ " $FAILING " -eq " 1" ]; then
184- [ " $VERBOSE_MODE " -ne " 1" ] && log -i -n " Data sent successfully"
185184 FAILING=0
186185 rm -f " $RESPONSE_FILE "
186+ [ " $VERBOSE_MODE " -ne " 1" ] && log -i -n " Data sent successfully"
187187 fi
188188 # remove saved data
189189 rm -f " $filename "
You can’t perform that action at this time.
0 commit comments