properly describe if a failed plugin will be restarted; #1155
Costa Tsaousis (ktsaou) committed
Oct 25, 2016 at 22:25 UTC
122f9ccfdc0070de9820e131622b6d27da3e4bc6
1 file changed
+2
-2
src/plugins_d.c
+2
-2
@@ -394,7 +394,7 @@ void *pluginsd_worker_thread(void *arg)
394
// we have collected something
395
396
if(likely(cd->serial_failures <= 10)) {
397
- error("PLUGINSD: '%s' exited with error code %d, but has given useful output in the past (%zu times). Waiting a bit before starting it again.", cd->fullfilename, code, cd->successful_collections);
397
+ error("PLUGINSD: '%s' exited with error code %d, but has given useful output in the past (%zu times). %s", cd->fullfilename, code, cd->successful_collections, cd->enabled?"Waiting a bit before starting it again.":"Will not start it again - it is disabled.");
398
sleep((unsigned int) (cd->update_every * 10));
399
}
400
else {
@@ -410,7 +410,7 @@ void *pluginsd_worker_thread(void *arg)
410
// we have collected nothing so far
411
412
if(likely(cd->serial_failures <= 10)) {
413
- error("PLUGINSD: '%s' (pid %d) does not generate useful output but it reports success (exits with 0). Waiting a bit before starting it again.", cd->fullfilename, cd->pid);
413
+ error("PLUGINSD: '%s' (pid %d) does not generate useful output but it reports success (exits with 0). %s.", cd->fullfilename, cd->pid, cd->enabled?"Waiting a bit before starting it again.":"Will not start it again - it is disabled.");
414
sleep((unsigned int) (cd->update_every * 10));
415
}
416
else {