]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Improve inode cache logging
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 8 Nov 2022 20:31:32 +0000 (21:31 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 10 Nov 2022 12:20:25 +0000 (13:20 +0100)
src/InodeCache.cpp

index 7c98f47fa09b60f977275a2149c3216e88d38acf..6ff430d38c46d50749e1ba5739d93f689a77722e 100644 (file)
@@ -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;
 }