1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 08:03:14 +02:00

Fixed ./services --version etc not getting printed when stdout is a file/pipe/not a tty

This commit is contained in:
Adam
2012-04-22 02:57:17 -04:00
parent 7372b457cc
commit fc00406079
2 changed files with 4 additions and 10 deletions
+1 -4
View File
@@ -161,10 +161,7 @@ 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)
{
if (AtTerm())
std::cout << this->BuildPrefix() << this->buf.str() << std::endl;
}
std::cout << this->BuildPrefix() << this->buf.str() << std::endl;
for (unsigned i = 0; Config && i < Config->LogInfos.size(); ++i)
{
LogInfo *l = Config->LogInfos[i];