Skip to content
Snippets Groups Projects
Commit e4fee22b authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

remove annoying RING_ERR log in fileutils

Remove the RING_ERR call with directory argument doesn't exist
when fileutils::readDirectory() is called.

This function returns an empty result if such case that's enough
for callers to log something if they want. but not log (as error)
by default, more annoying!

Change-Id: I0f1fff604de70997f3f6419ccd050687629e10d4
parent 5e07f345
No related branches found
No related tags found
No related merge requests found
......@@ -336,10 +336,8 @@ std::vector<std::string>
readDirectory(const std::string& dir)
{
DIR *dp = opendir(dir.c_str());
if (!dp) {
RING_ERR("Could not open %s", dir.c_str());
if (!dp)
return {};
}
size_t size = dirent_buf_size(dp);
if (size == (size_t)(-1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment