input: inform about pausing plugin just if is still running
@@ -760,8 +760,8 @@ int flb_input_pause_all(struct flb_config *config)
mk_list_foreach(head, &config->inputs) {
in = mk_list_entry(head, struct flb_input_instance, _head);
- flb_info("[input] pausing %s", in->name);
if (flb_input_buf_paused(in) == FLB_FALSE) {
+ flb_info("[input] pausing %s", flb_input_name(in));
if (in->p->cb_pause) {
in->p->cb_pause(in->context, in->config);
}
