Skip to content

Commit

Permalink
Merge pull request #7 from spiiroin/jb24364_customization_warnings
Browse files Browse the repository at this point in the history
Do not warn about non-existing files by default
  • Loading branch information
spiiroin committed Sep 7, 2015
2 parents ce16964 + 461fddc commit b288767
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage.cpp
Expand Up @@ -94,7 +94,9 @@ record *storage::load()
int res = read_file_to_string(path_i, data_cached) ;
if(res<0)
{
log_warning("can't read '%s': %m", path_i) ;
// let caller decide if non-existing files require diagnostic logging
if(errno != ENOENT)
log_warning("can't read '%s': %m", path_i) ;
continue ;
}
// read success
Expand Down

0 comments on commit b288767

Please sign in to comment.