Add more pretty strings to logs (#5768)
This commit is contained in:
@@ -165,7 +165,7 @@ namespace Content.Server.Body.Systems
|
||||
{
|
||||
var entity = args.SolutionEntity;
|
||||
_logSystem.Add(LogType.ReagentEffect, effect.LogImpact,
|
||||
$"Metabolism effect {effect.GetType().Name} of reagent {args.Reagent.Name:reagent} applied on entity {entity} at {Transform(entity).Coordinates}");
|
||||
$"Metabolism effect {effect.GetType().Name:effect} of reagent {args.Reagent.Name:reagent} applied on entity {entity} at {Transform(entity).Coordinates:coordinates}");
|
||||
}
|
||||
|
||||
effect.Effect(args);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Content.Server.Administration.Logs;
|
||||
@@ -198,7 +198,7 @@ namespace Content.Server.Body.Systems
|
||||
private void TakeSuffocationDamage(EntityUid uid, RespiratorComponent respirator)
|
||||
{
|
||||
if (!respirator.Suffocating)
|
||||
_logSys.Add(LogType.Asphyxiation, $"{uid:Entity} started suffocating");
|
||||
_logSys.Add(LogType.Asphyxiation, $"{ToPrettyString(uid):entity} started suffocating");
|
||||
|
||||
respirator.Suffocating = true;
|
||||
|
||||
@@ -213,7 +213,7 @@ namespace Content.Server.Body.Systems
|
||||
private void StopSuffocation(EntityUid uid, RespiratorComponent respirator)
|
||||
{
|
||||
if (respirator.Suffocating)
|
||||
_logSys.Add(LogType.Asphyxiation, $"{uid:Entity} stopped suffocating");
|
||||
_logSys.Add(LogType.Asphyxiation, $"{ToPrettyString(uid):entity} stopped suffocating");
|
||||
|
||||
respirator.Suffocating = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user