trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Artem Savkov <asavkov@redhat.com>
To: davej@codemonkey.org.uk
Cc: trinity@vger.kernel.org, Artem Savkov <asavkov@redhat.com>
Subject: [PATCH] Fix logging logic in output().
Date: Wed, 17 Feb 2016 17:20:39 +0100	[thread overview]
Message-ID: <1455726039-5525-1-git-send-email-asavkov@redhat.com> (raw)

Commit "preparation for different forms of logging." contained a typo that
broke logging to mainlogfile.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
---
 log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log.c b/log.c
index dbac844..aee5a67 100644
--- a/log.c
+++ b/log.c
@@ -103,7 +103,7 @@ void output(unsigned char level, const char *fmt, ...)
 	}
 
 	/* go on with file logs only if enabled */
-	if (logging == LOGGING_FILES)
+	if (logging == LOGGING_DISABLED)
 		return;
 
 	handle = find_logfile_handle();
-- 
2.5.0

             reply	other threads:[~2016-02-17 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 16:20 Artem Savkov [this message]
2016-02-17 16:55 ` [PATCH] Fix logging logic in output() Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455726039-5525-1-git-send-email-asavkov@redhat.com \
    --to=asavkov@redhat.com \
    --cc=davej@codemonkey.org.uk \
    --cc=trinity@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).