Remove spam about updating realms

Added log telling us BNetServer started successfully
Change log from trace to info about connections accepted
This commit is contained in:
hondacrx
2018-01-20 13:50:35 -05:00
parent d2ff8683ae
commit 461dff9b67
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ namespace BNetServer.Networking
public override void Start() public override void Start()
{ {
string ip_address = GetRemoteIpAddress().ToString(); string ip_address = GetRemoteIpAddress().ToString();
Log.outTrace(LogFilter.Session, "{0} Accepted connection", GetClientInfo()); Log.outInfo(LogFilter.Network, "{0} Accepted connection", GetClientInfo());
// Verify that this IP is not in the ip_banned table // Verify that this IP is not in the ip_banned table
DB.Login.Execute(DB.Login.GetPreparedStatement(LoginStatements.DEL_EXPIRED_IP_BANS)); DB.Login.Execute(DB.Login.GetPreparedStatement(LoginStatements.DEL_EXPIRED_IP_BANS));
+2
View File
@@ -83,6 +83,8 @@ namespace BNetServer
ExitNow(); ExitNow();
} }
Log.outInfo(LogFilter.Server, $"Bnetserver started successfully, listening on {bindIp}:{bnPort}");
uint _banExpiryCheckInterval = ConfigMgr.GetDefaultValue("BanExpiryCheckInterval", 60u); uint _banExpiryCheckInterval = ConfigMgr.GetDefaultValue("BanExpiryCheckInterval", 60u);
_banExpiryCheckTimer = new Timer(_banExpiryCheckInterval); _banExpiryCheckTimer = new Timer(_banExpiryCheckInterval);
_banExpiryCheckTimer.Elapsed += _banExpiryCheckTimer_Elapsed; _banExpiryCheckTimer.Elapsed += _banExpiryCheckTimer_Elapsed;
+2 -4
View File
@@ -57,8 +57,6 @@ public class RealmManager : Singleton<RealmManager>
void UpdateRealms(object source, ElapsedEventArgs e) void UpdateRealms(object source, ElapsedEventArgs e)
{ {
Log.outInfo(LogFilter.Realmlist, "Updating Realm List...");
PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_REALMLIST); PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_REALMLIST);
SQLResult result = DB.Login.Query(stmt); SQLResult result = DB.Login.Query(stmt);
@@ -105,9 +103,9 @@ public class RealmManager : Singleton<RealmManager>
_subRegions.Add(subRegion); _subRegions.Add(subRegion);
if (!existingRealms.ContainsKey(realm.Id)) if (!existingRealms.ContainsKey(realm.Id))
Log.outInfo(LogFilter.Realmlist, "Added realm \"{0}\" at {1}:{2}.", realm.Name, realm.ExternalAddress.ToString(), realm.Port); Log.outInfo(LogFilter.Realmlist, "Added realm \"{0}\" at {1}:{2}", realm.Name, realm.ExternalAddress.ToString(), realm.Port);
else else
Log.outDebug(LogFilter.Realmlist, "Updating realm \"{0}\" at {1}:{2}.", realm.Name, realm.ExternalAddress.ToString(), realm.Port); Log.outDebug(LogFilter.Realmlist, "Updating realm \"{0}\" at {1}:{2}", realm.Name, realm.ExternalAddress.ToString(), realm.Port);
existingRealms.Remove(realm.Id); existingRealms.Remove(realm.Id);
} }