eina/file: use INFO log level when eina_file_open fails
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 29 May 2019 13:16:30 +0000 (09:16 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 3 Jun 2019 06:58:34 +0000 (15:58 +0900)
Summary:
this function is commonly used to detect the existence of files using
its return value. for this purpose, printing warnings any time the file
cannot be opened is spammy and not very helpful in the context of detecting
actual errors.
Depends on D8950

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8951

src/lib/eina/eina_file.c

index 827775b..cc53f65 100644 (file)
@@ -877,7 +877,7 @@ eina_file_open(const char *path, Eina_Bool shared)
    return n;
 
  on_error:
-   WRN("Could not open file [%s].", filename);
+   INF("Could not open file [%s].", filename);
    eina_stringshare_del(filename);
 
    if (fd >= 0) close(fd);