mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*Move an output message in ScriptMgr to somewhere more useful, and more private :)
--HG-- branch : trunk
This commit is contained in:
@@ -30,6 +30,7 @@ void LoadDatabase()
|
||||
{
|
||||
//Get db string from file
|
||||
std::string dbstring = TScriptConfig.GetStringDefault("WorldDatabaseInfo", "");
|
||||
explode()
|
||||
|
||||
if (dbstring.empty())
|
||||
{
|
||||
@@ -40,7 +41,7 @@ void LoadDatabase()
|
||||
//Initialize connection to DB
|
||||
if (!dbstring.empty() && TScriptDB.Initialize(dbstring.c_str()))
|
||||
{
|
||||
outstring_log("TSCR: TrinityScript database at %s initialized", dbstring.c_str());
|
||||
outstring_log("TSCR: TrinityScript database initialized successfully.");
|
||||
outstring_log("");
|
||||
|
||||
pSystemMgr.LoadVersion();
|
||||
@@ -50,7 +51,7 @@ void LoadDatabase()
|
||||
}
|
||||
else
|
||||
{
|
||||
error_log("TSCR: Unable to connect to Database. Load database aborted.");
|
||||
error_log("TSCR: Unable to connect to database at %s. Load database aborted.", dbstring.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user