Skip to content

Commit da1a97b

Browse files
cosmo0920edsiper
authored andcommitted
node_exporter_metrics: Use real_path for complaining on glob error
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e7759c2 commit da1a97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/in_node_exporter_metrics/ne_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ int ne_utils_path_scan(struct flb_ne *ctx, const char *mount, const char *path,
302302
flb_plg_error(ctx->ins, "no memory space available");
303303
return -1;
304304
case GLOB_ABORTED:
305-
flb_plg_error(ctx->ins, "read error, check permissions: %s", path);
305+
flb_plg_error(ctx->ins, "read error, check permissions: %s", real_path);
306306
return -1;;
307307
case GLOB_NOMATCH:
308308
ret = stat(path, &st);

0 commit comments

Comments
 (0)