mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-11 23:14:39 +02:00
Cleaned up LogFile and ByteArrayToHex utils.
This commit is contained in:
parent
8b93abe86e
commit
1c712c7533
31 changed files with 409 additions and 405 deletions
|
@ -22,15 +22,15 @@ namespace FFXIVClassic_Lobby_Server
|
|||
if (!ConfigConstants.load())
|
||||
startServer = false;
|
||||
|
||||
Log.log("--------FFXIV 1.0 Lobby Server--------", Log.LogType.Debug);
|
||||
|
||||
|
||||
Log.Info("--------FFXIV 1.0 Lobby Server--------");
|
||||
|
||||
|
||||
Assembly assem = Assembly.GetExecutingAssembly();
|
||||
Version vers = assem.GetName().Version;
|
||||
Log.info("Version: " + vers.ToString());
|
||||
Log.Info("Version: " + vers.ToString());
|
||||
|
||||
//Test DB Connection
|
||||
Log.info(String.Format("Testing DB connection to \"{0}\"... ", ConfigConstants.DATABASE_HOST));
|
||||
Log.Info(String.Format("Testing DB connection to \"{0}\"... ", ConfigConstants.DATABASE_HOST));
|
||||
using (MySqlConnection conn = new MySqlConnection(String.Format("Server={0}; Port={1}; Database={2}; UID={3}; Password={4}", ConfigConstants.DATABASE_HOST, ConfigConstants.DATABASE_PORT, ConfigConstants.DATABASE_NAME, ConfigConstants.DATABASE_USERNAME, ConfigConstants.DATABASE_PASSWORD)))
|
||||
{
|
||||
try
|
||||
|
@ -38,12 +38,12 @@ namespace FFXIVClassic_Lobby_Server
|
|||
conn.Open();
|
||||
conn.Close();
|
||||
|
||||
Log.conn("[OK]");
|
||||
Log.Status("[OK]");
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
Log.error(e.ToString());
|
||||
Log.error("[FAILED]");
|
||||
Log.Error(e.ToString());
|
||||
Log.Error("[FAILED]");
|
||||
|
||||
startServer = false;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ namespace FFXIVClassic_Lobby_Server
|
|||
while (true) Thread.Sleep(10000);
|
||||
}
|
||||
|
||||
Log.info("Press any key to continue...");
|
||||
Log.Info("Press any key to continue...");
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue