summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 648a0da5f..d8aed5ee7 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -147,7 +147,10 @@ Log::~Log()
else if (nofork && this->Type <= LOG_TERMINAL)
std::cout << GetTimeStamp() << " " << this->BuildPrefix() << this->buf.str() << std::endl;
else if (this->Type == LOG_TERMINAL)
- std::cout << this->BuildPrefix() << this->buf.str() << std::endl;
+ {
+ if (AtTerm())
+ std::cout << this->BuildPrefix() << this->buf.str() << std::endl;
+ }
for (unsigned i = 0; Config && i < Config->LogInfos.size(); ++i)
{
LogInfo *l = Config->LogInfos[i];