fix(core): Improve output for 2 small errors (#2549)

This commit is contained in:
Barbz
2020-01-15 09:46:49 +01:00
committed by Stoabrogga
parent dd81c21968
commit 7e0fba81b7
4 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -141,10 +141,10 @@ extern int main(int argc, char** argv)
if (!pidFile.empty())
{
if (uint32 pid = CreatePIDFile(pidFile))
sLog->outError("Daemon PID: %u\n", pid);
sLog->outError("Daemon PID: %u\n", pid); // outError for red color in console
else
{
sLog->outError("Cannot create PID file %s.\n", pidFile.c_str());
sLog->outError("Cannot create PID file %s (possible error: permission)\n", pidFile.c_str());
return 1;
}
}
@@ -181,7 +181,7 @@ extern int main(int argc, char** argv)
if (acceptor.open(bind_addr, ACE_Reactor::instance(), ACE_NONBLOCK) == -1)
{
sLog->outError("Auth server can not bind to %s:%d", bind_ip.c_str(), rmport);
sLog->outError("Auth server can not bind to %s:%d (possible error: port already in use)", bind_ip.c_str(), rmport);
return 1;
}
+1 -1
View File
@@ -2002,7 +2002,7 @@ void World::SetInitialWorldSettings()
uint32 startupDuration = GetMSTimeDiffToNow(startupBegin);
sLog->outString();
sLog->outError("WORLD: World initialized in %u minutes %u seconds", (startupDuration / 60000), ((startupDuration % 60000) / 1000));
sLog->outError("WORLD: World initialized in %u minutes %u seconds", (startupDuration / 60000), ((startupDuration % 60000) / 1000)); // outError for red color in console
sLog->outString();
// possibly enable db logging; avoid massive startup spam by doing it here.
+2 -2
View File
@@ -141,10 +141,10 @@ int Master::Run()
if (!pidFile.empty())
{
if (uint32 pid = CreatePIDFile(pidFile))
sLog->outString("Daemon PID: %u\n", pid);
sLog->outError("Daemon PID: %u\n", pid); // outError for red color in console
else
{
sLog->outString("Cannot create PID file %s.\n", pidFile.c_str());
sLog->outError("Cannot create PID file %s (possible error: permission)\n", pidFile.c_str());
return 1;
}
}
@@ -56,7 +56,7 @@ void RARunnable::run()
if (acceptor.open(listenAddress, m_Reactor) == -1)
{
sLog->outError("Trinity RA can not bind to port %d on %s", raPort, stringIp.c_str());
sLog->outError("Trinity RA can not bind to port %d on %s (possible error: port already in use)", raPort, stringIp.c_str());
return;
}