@@ -485,6 +485,7 @@ int flb_engine_failed(struct flb_config *config)
485485
486486 /* Check the channel is valid (enabled by library mode) */
487487 if (config -> ch_notif [1 ] <= 0 ) {
488+ flb_error ("[engine] no channel to notify FAILED message" );
488489 return -1 ;
489490 }
490491
@@ -565,6 +566,7 @@ int flb_engine_start(struct flb_config *config)
565566 /* Create the event loop and set it in the global configuration */
566567 evl = mk_event_loop_create (256 );
567568 if (!evl ) {
569+ fprintf (stderr , "[log] could not create event loop\n" );
568570 return -1 ;
569571 }
570572 config -> evl = evl ;
@@ -604,6 +606,7 @@ int flb_engine_start(struct flb_config *config)
604606 /* Start the Logging service */
605607 ret = flb_engine_log_start (config );
606608 if (ret == -1 ) {
609+ fprintf (stderr , "[engine] log start failed\n" );
607610 return -1 ;
608611 }
609612
@@ -639,6 +642,7 @@ int flb_engine_start(struct flb_config *config)
639642 /* Start the Storage engine */
640643 ret = flb_storage_create (config );
641644 if (ret == -1 ) {
645+ flb_error ("[engine] storage creation failed" );
642646 return -1 ;
643647 }
644648
@@ -661,12 +665,14 @@ int flb_engine_start(struct flb_config *config)
661665 /* Initialize input plugins */
662666 ret = flb_input_init_all (config );
663667 if (ret == -1 ) {
668+ flb_error ("[engine] input initialization failed" );
664669 return -1 ;
665670 }
666671
667672 /* Initialize filter plugins */
668673 ret = flb_filter_init_all (config );
669674 if (ret == -1 ) {
675+ flb_error ("[engine] filter initialization failed" );
670676 return -1 ;
671677 }
672678
@@ -676,6 +682,7 @@ int flb_engine_start(struct flb_config *config)
676682 /* Initialize output plugins */
677683 ret = flb_output_init_all (config );
678684 if (ret == -1 ) {
685+ flb_error ("[engine] output initialization failed" );
679686 return -1 ;
680687 }
681688
0 commit comments