diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2022-03-14 14:29:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 16:29:11 +0200 |
commit | 3e20d9f9217a153affd0450c72543c19ba67bf18 (patch) | |
tree | 29057bee51025791a6791029dab2f746a3f7b04e /libnetdata/procfile | |
parent | c367788fc027a2696ea712f85aebb5db9d158de8 (diff) |
Remove unecessary error report for proc and sys files (#12385)
Diffstat (limited to 'libnetdata/procfile')
-rw-r--r-- | libnetdata/procfile/procfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetdata/procfile/procfile.h b/libnetdata/procfile/procfile.h index d29adf8e6a..5263ad770c 100644 --- a/libnetdata/procfile/procfile.h +++ b/libnetdata/procfile/procfile.h @@ -103,4 +103,7 @@ extern int procfile_adaptive_initial_allocation; // return the Nth word of the current line #define procfile_lineword(ff, line, word) (((line) < procfile_lines(ff) && (word) < procfile_linewords((ff), (line))) ? procfile_word((ff), (ff)->lines->lines[(line)].first + (word)) : "") +// Open file without logging file IO error if any +#define procfile_open_no_log(filename, separators, flags) procfile_open(filename, separators, flags | PROCFILE_FLAG_NO_ERROR_ON_FILE_IO) + #endif /* NETDATA_PROCFILE_H */ |