Minor startup streamlining
* LOGD'd unneeded debugging messages, streamlining startup + Added a basic timer for how long in seconds it took to start up + Added two checks for plural (plugin/s, second/s)
This commit is contained in:
@@ -206,9 +206,8 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
|
||||
return false;
|
||||
}
|
||||
|
||||
LOG("Starting up server.");
|
||||
LOGINFO("Compatible clients: %s", MCS_CLIENT_VERSIONS);
|
||||
LOGINFO("Compatible protocol versions %s", MCS_PROTOCOL_VERSIONS);
|
||||
LOGD("Compatible clients: %s", MCS_CLIENT_VERSIONS);
|
||||
LOGD("Compatible protocol versions %s", MCS_PROTOCOL_VERSIONS);
|
||||
|
||||
if (cSocket::WSAStartup() != 0) // Only does anything on Windows, but whatever
|
||||
{
|
||||
@@ -292,7 +291,7 @@ void cServer::PrepareKeys(void)
|
||||
// TODO: Save and load key for persistence across sessions
|
||||
// But generating the key takes only a moment, do we even need that?
|
||||
|
||||
LOG("Generating protocol encryption keypair...");
|
||||
LOGD("Generating protocol encryption keypair...");
|
||||
|
||||
time_t CurTime = time(NULL);
|
||||
CryptoPP::RandomPool rng;
|
||||
|
||||
Reference in New Issue
Block a user