Add more pretty strings to logs (#5768)
This commit is contained in:
@@ -325,7 +325,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
});
|
||||
|
||||
// logging
|
||||
_logSystem.Add(LogType.ForceFeed, LogImpact.Medium, $"{ToPrettyString(user)} is forcing {ToPrettyString(target)} to eat {ToPrettyString(uid)}");
|
||||
_logSystem.Add(LogType.ForceFeed, LogImpact.Medium, $"{ToPrettyString(user):user} is forcing {ToPrettyString(target):target} to eat {ToPrettyString(uid):food} {SolutionContainerSystem.ToPrettyString(foodSolution):solution}");
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -415,9 +415,9 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|
||||
// logging
|
||||
if (user == null)
|
||||
_logSystem.Add(LogType.ForceFeed, $"{uid} was thrown into the mouth of {target}");
|
||||
_logSystem.Add(LogType.ForceFeed, $"{ToPrettyString(uid):food} {SolutionContainerSystem.ToPrettyString(foodSolution):solution} was thrown into the mouth of {ToPrettyString(target):target}");
|
||||
else
|
||||
_logSystem.Add(LogType.ForceFeed, $"{user} threw {uid} into the mouth of {target}");
|
||||
_logSystem.Add(LogType.ForceFeed, $"{ToPrettyString(user.Value):user} threw {ToPrettyString(uid):food} {SolutionContainerSystem.ToPrettyString(foodSolution):solution} into the mouth of {ToPrettyString(target):target}");
|
||||
|
||||
var filter = user == null ? Filter.Entities(target) : Filter.Entities(target, user.Value);
|
||||
_popupSystem.PopupEntity(Loc.GetString(food.EatMessage), target, filter);
|
||||
|
||||
Reference in New Issue
Block a user