Skip to content

Commit

Permalink
node_exporter_metrics: Use real_path for complaining on glob error
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Nov 25, 2024
1 parent e7759c2 commit da1a97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_node_exporter_metrics/ne_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int ne_utils_path_scan(struct flb_ne *ctx, const char *mount, const char *path,
flb_plg_error(ctx->ins, "no memory space available");
return -1;
case GLOB_ABORTED:
flb_plg_error(ctx->ins, "read error, check permissions: %s", path);
flb_plg_error(ctx->ins, "read error, check permissions: %s", real_path);
return -1;;
case GLOB_NOMATCH:
ret = stat(path, &st);
Expand Down

0 comments on commit da1a97b

Please sign in to comment.