Skip to content

Commit

Permalink
style: adding space to debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Jun 11, 2023
1 parent a758a9d commit 99aac33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/Mirage/Weaver/Processors/SyncObjectProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void GenerateReadersAndWriters(TypeReference tr)

private void RegisterSyncObjects(TypeDefinition netBehaviourSubclass)
{
Weaver.DebugLog(netBehaviourSubclass, " GenerateConstants ");
Weaver.DebugLog(netBehaviourSubclass, "GenerateConstants ");

netBehaviourSubclass.AddToConstructor(logger, (worker) =>
{
Expand Down
4 changes: 2 additions & 2 deletions Assets/Mirage/Weaver/Processors/SyncVarProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void WriteNewValue()

private void GenerateSerialization()
{
Weaver.DebugLog(behaviour.TypeDefinition, " GenerateSerialization");
Weaver.DebugLog(behaviour.TypeDefinition, "GenerateSerialization");

// dont create if there are no syncvars
if (behaviour.SyncVars.Count == 0)
Expand Down Expand Up @@ -566,7 +566,7 @@ private void WriteFromField(ILProcessor worker, ParameterDefinition writerParame

private void GenerateDeserialization()
{
Weaver.DebugLog(behaviour.TypeDefinition, " GenerateDeSerialization");
Weaver.DebugLog(behaviour.TypeDefinition, "GenerateDeSerialization");

// dont create if there are no syncvars
if (behaviour.SyncVars.Count == 0)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Mirage/Weaver/Weaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Weaver
[Conditional("WEAVER_DEBUG_LOGS")]
public static void DebugLog(TypeDefinition td, string message)
{
Console.WriteLine($"Weaver[{td.Name}]{message}");
Console.WriteLine($"Weaver[{td.Name}] {message}");
}

private static void Log(string msg)
Expand Down

0 comments on commit 99aac33

Please sign in to comment.