From: Joel Rosdahl Date: Tue, 8 Sep 2020 18:09:52 +0000 (+0200) Subject: Don’t log stat error in Util::read_file X-Git-Tag: v4.0~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7e44bae3fa43c2c9374687e57bce9ee29f96429;p=thirdparty%2Fccache.git Don’t log stat error in Util::read_file An error is signalled via an exception so let’s make it up to the caller whether to log or not. --- diff --git a/src/Util.cpp b/src/Util.cpp index 78e3d8445..bdb163956 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -1090,7 +1090,7 @@ std::string read_file(const std::string& path, size_t size_hint) { if (size_hint == 0) { - auto stat = Stat::stat(path, Stat::OnError::log); + auto stat = Stat::stat(path); if (!stat) { throw Error(strerror(errno)); }