Skip to content

Commit e1e4164

Browse files
committed
quick fixes
1 parent d153a7e commit e1e4164

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Assets/Scripts/Gameplay/GameState/DSLobbyManagementState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected override void Start()
3434
var portArg = "-port";
3535
if (args.ContainsKey(portArg) && !int.TryParse(args[portArg], out port))
3636
{
37-
Debug.Log("failed to parse -port arg: " + args[portArg]);
37+
DedicatedServerUtilities.Log("failed to parse -port arg: " + args[portArg]);
3838
}
3939

4040
DedicatedServerUtilities.Log($"Starting Headless Server, listening on address {address}:{port}");

Packages/com.unity.multiplayer.samples.coop/Utilities/Net/DedicatedServer/DedicatedServerUtilities.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public static bool IsServerBuildTarget
2222
}
2323
}
2424

25-
// todo improve perf on this
25+
// todo improve perf on this, don't do string concatenation everywhere, especially if log level is too high
26+
// TODO use json structure for log analysis tools (kibana, elasticsearch, etc)
2627
// todo find a way to disable full stack trace if needed, this could take a lot of resources.
2728
// Logging format should change following which logging analytics service you use. Elasticsearch could
2829
// require a different format than splunk for example.

0 commit comments

Comments
 (0)