From 2d6555f33a5b0fd1e9f0db87e3a2146c3c26add0 Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Thu, 7 Apr 2016 14:59:32 +0900 Subject: [PATCH] Add log flag for verbose AppFuse log for nyc-dev. Change-Id: I60ca596e32f8668ae5895e671d92c4978ede6314 Fixed: 28055420 --- CommandListener.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CommandListener.cpp b/CommandListener.cpp index 863724b..8780e98 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -52,6 +52,7 @@ #include "TrimTask.h" #define DUMP_ARGS 0 +#define DEBUG_APPFUSE 0 CommandListener::CommandListener() : FrameworkListener("vold", true) { @@ -674,8 +675,10 @@ static android::status_t runCommandInNamespace(const std::string& command, pid_t pid, const std::string& path, int device_fd) { - LOG(DEBUG) << "Run app fuse command " << command << " for the path " << path << " in namespace " - << uid; + if (DEBUG_APPFUSE) { + LOG(DEBUG) << "Run app fuse command " << command << " for the path " << path + << " in namespace " << uid; + } const android::vold::ScopedDir dir(opendir("/proc")); if (dir.get() == nullptr) {