fix: Makes logging more consistent (#1246)
This commit is contained in:
parent
8e0d01d4be
commit
d8cfb6b935
15 changed files with 90 additions and 69 deletions
|
|
@ -407,7 +407,11 @@ public sealed class Map : IComparable<Map>, ISpanFormattable, ISpanParsable<Map>
|
|||
{
|
||||
if (this == Internal && m_Name != "Internal")
|
||||
{
|
||||
logger.Warning("Internal map name was '{Name}'\n{StackTrace}", m_Name, new StackTrace());
|
||||
logger.Warning(
|
||||
$"Internal map name was '{{Name}}'{Environment.NewLine}{{StackTrace}}",
|
||||
m_Name,
|
||||
new StackTrace()
|
||||
);
|
||||
m_Name = "Internal";
|
||||
}
|
||||
|
||||
|
|
@ -417,7 +421,11 @@ public sealed class Map : IComparable<Map>, ISpanFormattable, ISpanParsable<Map>
|
|||
{
|
||||
if (this == Internal && value != "Internal")
|
||||
{
|
||||
logger.Warning("Attempted to set internal map name to '{Value}'\n{StackTrace}", value, new StackTrace());
|
||||
logger.Warning(
|
||||
$"Attempted to set internal map name to '{{Value}}'{Environment.NewLine}{{StackTrace}}",
|
||||
value,
|
||||
new StackTrace()
|
||||
);
|
||||
value = "Internal";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue