From fa635f72b84386e21ac69998ea29f0ec9496511f Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 5 Jan 2016 10:42:46 +0100 Subject: [PATCH] In the check log write status:correct only in verbose mode --- cmdline/check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmdline/check.c b/cmdline/check.c index 89c0fbe1..dd80763e 100644 --- a/cmdline/check.c +++ b/cmdline/check.c @@ -764,10 +764,11 @@ static int file_post(struct snapraid_state* state, int fix, unsigned i, struct s log_tag("status:recoverable:%s:%s\n", disk->name, esc(file->sub)); msg_info("recoverable %s\n", path); } else { - log_tag("status:correct:%s:%s\n", disk->name, esc(file->sub)); /* we don't use msg_verbose() because it also goes into the log */ - if (msg_level >= MSG_VERBOSE) + if (msg_level >= MSG_VERBOSE) { + log_tag("status:correct:%s:%s\n", disk->name, esc(file->sub)); msg_info("correct %s\n", path); + } } }