@@ -191,7 +191,7 @@ static double wmi_get_value(struct flb_we *ctx, struct wmi_query_spec *spec, IWb
191191 wproperty = we_convert_str (spec -> wmi_property );
192192 hr = class_obj -> lpVtbl -> Get (class_obj , wproperty , 0 , & prop , 0 , 0 );
193193 if (FAILED (hr )) {
194- flb_plg_warn (ctx -> ins , "Retrive prop failed. Error code = %x" , hr );
194+ flb_plg_warn (ctx -> ins , "Retrive prop '%s' failed. Error code = %x" , spec -> wmi_property , hr );
195195 }
196196 strprop = convert_prop_to_str (& prop , FLB_FALSE );
197197 if (strprop == NULL ) {
@@ -217,7 +217,7 @@ static double wmi_get_property_value(struct flb_we *ctx, char *raw_property_key,
217217 wproperty = we_convert_str (raw_property_key );
218218 hr = class_obj -> lpVtbl -> Get (class_obj , wproperty , 0 , & prop , 0 , 0 );
219219 if (FAILED (hr )) {
220- flb_plg_warn (ctx -> ins , "Retrive prop failed. Error code = %x" , hr );
220+ flb_plg_warn (ctx -> ins , "Retrive prop '%s' failed. Error code = %x" , raw_property_key , hr );
221221 }
222222 strprop = convert_prop_to_str (& prop , FLB_FALSE );
223223 if (strprop == NULL ) {
@@ -245,7 +245,7 @@ static char *wmi_get_property_str_value(struct flb_we *ctx, char *raw_property_k
245245 wproperty = we_convert_str (raw_property_key );
246246 hr = class_obj -> lpVtbl -> Get (class_obj , wproperty , 0 , & prop , 0 , 0 );
247247 if (FAILED (hr )) {
248- flb_plg_warn (ctx -> ins , "Retrive prop failed. Error code = %x" , hr );
248+ flb_plg_warn (ctx -> ins , "Retrive prop '%s' failed. Error code = %x" , raw_property_key , hr );
249249 }
250250 str_val = convert_prop_to_str (& prop , FLB_TRUE );
251251 VariantClear (& prop );
0 commit comments