File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ static int cb_es_init(struct flb_output_instance *ins,
513513
514514 ctx = flb_calloc (1 , sizeof (struct flb_elasticsearch ));
515515 if (!ctx ) {
516- flb_errno ( );
516+ flb_plg_error ( ins , "cannot initialize plugin" );
517517 return -1 ;
518518 }
519519 ctx -> ins = ins ;
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ int es_config_ha(const char *upstream_file,
277277 ctx -> ha_mode = FLB_TRUE ;
278278 ctx -> ha = flb_upstream_ha_from_file (upstream_file , config );
279279 if (!ctx -> ha ) {
280- flb_error ( "[out_es] cannot load Upstream file" );
280+ flb_plg_error ( ctx -> ins , " cannot load Upstream file" );
281281 return -1 ;
282282 }
283283
@@ -296,7 +296,7 @@ int es_config_ha(const char *upstream_file,
296296 ec = flb_calloc (1 , sizeof (struct flb_elasticsearch_config ));
297297 if (!ec ) {
298298 flb_errno ();
299- flb_error ( "[out_es] failed config allocation" );
299+ flb_plg_error ( ctx -> ins , " failed config allocation" );
300300 continue ;
301301 }
302302
You can’t perform that action at this time.
0 commit comments