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:
+1
-4
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user