From: Mike Blumenkrantz Date: Wed, 29 May 2019 13:16:30 +0000 (-0400) Subject: eina/file: use INFO log level when eina_file_open fails X-Git-Tag: accepted/tizen/unified/20190604.014647~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e627bd02dd556f4f7eed18fda33305e3258d9956;p=platform%2Fupstream%2Fefl.git eina/file: use INFO log level when eina_file_open fails 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 --- diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c index 827775b..cc53f65 100644 --- a/src/lib/eina/eina_file.c +++ b/src/lib/eina/eina_file.c @@ -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);