Skip to content

Commit 4b43ce5

Browse files
Merge pull request #33 from unity-game-framework/issue-31-fix-debug-log-entry-body-error
Fix debug log entry body error
2 parents 053e4a0 + c1bc11a commit 4b43ce5

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Packages/UGF.DebugTools/Runtime/UI.Misc/DebugUILogEntryData.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ public readonly struct DebugUILogEntryData
1010
public string Message { get; }
1111
public string Body { get; }
1212

13-
public DebugUILogEntryData(DateTime time, LogType type, string message, string body)
13+
public DebugUILogEntryData(DateTime time, LogType type, string message, string body = null)
1414
{
1515
if (string.IsNullOrEmpty(message)) throw new ArgumentException("Value cannot be null or empty.", nameof(message));
16-
if (string.IsNullOrEmpty(body)) throw new ArgumentException("Value cannot be null or empty.", nameof(body));
1716

1817
Time = time;
1918
Type = type;
2019
Message = message;
21-
Body = body;
20+
Body = body ?? string.Empty;
2221
}
2322
}
2423
}

Packages/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.ide.rider": "3.0.31",
3+
"com.unity.ide.rider": "3.0.34",
44
"com.unity.test-framework": "1.4.5",
55
"com.unity.ugui": "2.0.0"
66
},

Packages/packages-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"url": "https://packages.unity.com"
6262
},
6363
"com.unity.ide.rider": {
64-
"version": "3.0.31",
64+
"version": "3.0.34",
6565
"depth": 0,
6666
"source": "registry",
6767
"dependencies": {

ProjectSettings/ProjectVersion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 6000.0.14f1
2-
m_EditorVersionWithRevision: 6000.0.14f1 (e12ab2d6a089)
1+
m_EditorVersion: 6000.0.23f1
2+
m_EditorVersionWithRevision: 6000.0.23f1 (1c4764c07fb4)

0 commit comments

Comments
 (0)