From: Joel Rosdahl Date: Tue, 8 Nov 2022 20:31:32 +0000 (+0100) Subject: chore: Improve inode cache logging X-Git-Tag: v4.7.4~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ff4a0e173309c16c282c8d2c80ae950864bf8d;p=thirdparty%2Fccache.git chore: Improve inode cache logging --- diff --git a/src/InodeCache.cpp b/src/InodeCache.cpp index 7c98f47fa..6ff430d38 100644 --- a/src/InodeCache.cpp +++ b/src/InodeCache.cpp @@ -474,8 +474,9 @@ InodeCache::put(const std::string& path, return false; } - LOG("Inode cache insert: {}", path); - + if (m_config.debug()) { + LOG("Inode cache insert: {}", path); + } return true; }