From 8a6317eaaf722e2c0a0e5fe3b6d02c740f27e51c Mon Sep 17 00:00:00 2001 From: benrubson Date: Mon, 23 Jan 2017 16:03:22 +0100 Subject: [PATCH] Improve log messages --- encfs/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/encfs/main.cpp b/encfs/main.cpp index 3ce7744..35591d2 100644 --- a/encfs/main.cpp +++ b/encfs/main.cpp @@ -729,9 +729,8 @@ static void *idleMonitor(void *_arg) { break; } } else { - RLOG(WARNING) << "Filesystem " << arg->opts->mountPoint - << " inactive, but still " << openCount - << " opened files"; + RLOG(WARNING) << "Filesystem inactive, but " << openCount + << " files opened: " << arg->opts->mountPoint; } } @@ -769,13 +768,11 @@ static bool unmountFS(EncFS_Context *ctx) { else rc = system(("/sbin/umount "+std::string(arg->opts->mountPoint)).c_str()); if (!rc) { - RLOG(WARNING) << "Filesystem " << arg->opts->mountPoint - << " inactive, unmounted"; + RLOG(WARNING) << "Filesystem inactive, unmounted: " << arg->opts->mountPoint; return true; } else { - RLOG(ERROR) << "Filesystem " << arg->opts->mountPoint - << " inactive, but unmount failed"; + RLOG(ERROR) << "Filesystem inactive, but unmount failed: " << arg->opts->mountPoint; return false; } }