forked from enlightenment/efl
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
This commit is contained in:
parent
0f5cec8d51
commit
655c816539
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue