fix(core): Improve output for 2 small errors (#2549)
This commit is contained in:
@@ -141,10 +141,10 @@ extern int main(int argc, char** argv)
|
|||||||
if (!pidFile.empty())
|
if (!pidFile.empty())
|
||||||
{
|
{
|
||||||
if (uint32 pid = CreatePIDFile(pidFile))
|
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
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -181,7 +181,7 @@ extern int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (acceptor.open(bind_addr, ACE_Reactor::instance(), ACE_NONBLOCK) == -1)
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2002,7 +2002,7 @@ void World::SetInitialWorldSettings()
|
|||||||
|
|
||||||
uint32 startupDuration = GetMSTimeDiffToNow(startupBegin);
|
uint32 startupDuration = GetMSTimeDiffToNow(startupBegin);
|
||||||
sLog->outString();
|
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();
|
sLog->outString();
|
||||||
|
|
||||||
// possibly enable db logging; avoid massive startup spam by doing it here.
|
// possibly enable db logging; avoid massive startup spam by doing it here.
|
||||||
|
|||||||
@@ -141,10 +141,10 @@ int Master::Run()
|
|||||||
if (!pidFile.empty())
|
if (!pidFile.empty())
|
||||||
{
|
{
|
||||||
if (uint32 pid = CreatePIDFile(pidFile))
|
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
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ void RARunnable::run()
|
|||||||
|
|
||||||
if (acceptor.open(listenAddress, m_Reactor) == -1)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user