[Libreoffice-commits] online.git: loolwsd/Log.cpp
Jan Holesovsky
kendy at collabora.com
Tue Sep 27 09:31:25 UTC 2016
loolwsd/Log.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 429cc9d49be497ca57f7f4a2103581baff547185
Author: Jan Holesovsky <kendy at collabora.com>
Date: Tue Sep 27 11:30:26 2016 +0200
Only use color output if we are not redirected to a file.
Change-Id: I494a6bcfa4505d28e0f028c3e8de955c18bb58dd
diff --git a/loolwsd/Log.cpp b/loolwsd/Log.cpp
index c146af5..8f0059d 100644
--- a/loolwsd/Log.cpp
+++ b/loolwsd/Log.cpp
@@ -126,7 +126,7 @@ namespace Log
strncpy(LogPrefix, oss.str().c_str(), sizeof(LogPrefix));
// Configure the logger.
- AutoPtr<Channel> channel = (isatty(fileno(stderr)) || withColor
+ AutoPtr<Channel> channel = (isatty(fileno(stderr)) && withColor
? static_cast<Poco::Channel*>(new Poco::ColorConsoleChannel())
: static_cast<Poco::Channel*>(new Poco::ConsoleChannel()));
More information about the Libreoffice-commits
mailing list