Fix a bunch of logger warnings (#17691)
This commit is contained in:
@@ -42,7 +42,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
return alertsComponent.Alerts.ContainsKey(alert.AlertKey);
|
||||
}
|
||||
|
||||
Logger.DebugS("alert", "unknown alert type {0}", alertType);
|
||||
Log.Debug("Unknown alert type {0}", alertType);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.ErrorS("alert", "Unable to show alert {0}, please ensure this alertType has" +
|
||||
Log.Error("Unable to show alert {0}, please ensure this alertType has" +
|
||||
" a corresponding YML alert prototype",
|
||||
alertType);
|
||||
}
|
||||
@@ -147,7 +147,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.ErrorS("alert", "unable to clear alert, unknown alertType {0}", alertType);
|
||||
Log.Error("Unable to clear alert, unknown alertType {0}", alertType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,9 +206,8 @@ public abstract class AlertsSystem : EntitySystem
|
||||
{
|
||||
if (!_typeToAlert.TryAdd(alert.AlertType, alert))
|
||||
{
|
||||
Logger.ErrorS("alert",
|
||||
"Found alert with duplicate alertType {0} - all alerts must have" +
|
||||
" a unique alerttype, this one will be skipped", alert.AlertType);
|
||||
Log.Error("Found alert with duplicate alertType {0} - all alerts must have" +
|
||||
" a unique alerttype, this one will be skipped", alert.AlertType);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -230,7 +229,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
|
||||
if (!IsShowingAlert(player.Value, msg.Type))
|
||||
{
|
||||
Logger.DebugS("alert", "user {0} attempted to" +
|
||||
Log.Debug("User {0} attempted to" +
|
||||
" click alert {1} which is not currently showing for them",
|
||||
EntityManager.GetComponent<MetaDataComponent>(player.Value).EntityName, msg.Type);
|
||||
return;
|
||||
@@ -238,7 +237,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
|
||||
if (!TryGet(msg.Type, out var alert))
|
||||
{
|
||||
Logger.WarningS("alert", "unrecognized encoded alert {0}", msg.Type);
|
||||
Log.Warning("Unrecognized encoded alert {0}", msg.Type);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user