aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r--src/trinityrealm/Main.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp
index 68449ed3d71..3d934f4ba85 100644
--- a/src/trinityrealm/Main.cpp
+++ b/src/trinityrealm/Main.cpp
@@ -22,19 +22,18 @@
/// @{
/// \file
-#include <openssl/opensslv.h>
-#include <openssl/crypto.h>
-
#include "Common.h"
-#include "Config/ConfigEnv.h"
#include "Database/DatabaseEnv.h"
-#include "sockets/ListenSocket.h"
+#include "RealmList.h"
-#include "AuthSocket.h"
+#include "Config/ConfigEnv.h"
#include "Log.h"
-#include "RealmList.h"
+#include "sockets/ListenSocket.h"
+#include "AuthSocket.h"
#include "SystemConfig.h"
#include "Util.h"
+#include <openssl/opensslv.h>
+#include <openssl/crypto.h>
// Format is YYYYMMDDRR where RR is the change in the conf file
// for that day.
@@ -149,6 +148,9 @@ extern int main(int argc, char **argv)
sLog.outError("Could not find configuration file %s.", cfg_file);
return 1;
}
+
+ sLog.outString( "%s (realm-daemon)", _FULLVERSION );
+ sLog.outString( "<Ctrl-C> to stop.\n" );
sLog.outString("Using configuration file %s.", cfg_file);
///- Check the version of the configuration file
@@ -172,9 +174,6 @@ extern int main(int argc, char **argv)
sLog.outDetail("WARNING: Minimal required version [OpenSSL 0.9.8k]");
}
- sLog.outString( "%s (realm-daemon)", _FULLVERSION );
- sLog.outString( "<Ctrl-C> to stop.\n" );
-
/// realmd PID file creation
std::string pidfile = sConfig.GetStringDefault("PidFile", "");
if(!pidfile.empty())
@@ -261,7 +260,7 @@ extern int main(int argc, char **argv)
sLog.outError("Can't set used processors (hex): %x", curAff);
}
}
- sLog.outString("");
+ sLog.outString();
}
bool Prio = sConfig.GetBoolDefault("ProcessPriority", false);
@@ -272,7 +271,7 @@ extern int main(int argc, char **argv)
sLog.outString("TrinityRealm process priority class set to HIGH");
else
sLog.outError("ERROR: Can't set realmd process priority class.");
- sLog.outString("");
+ sLog.outString();
}
}
#endif