Skip to content

Commit caf88dd

Browse files
committed
Fixed GetAllLogs function not processing pending logs beforehand
1 parent cbac7f5 commit caf88dd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Plugins/IngameDebugConsole/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= In-game Debug Console (v1.8.0) =
1+
= In-game Debug Console (v1.8.1) =
22

33
Documentation: https://github.com/yasirkula/UnityIngameDebugConsole
44
FAQ: https://github.com/yasirkula/UnityIngameDebugConsole#faq

Plugins/IngameDebugConsole/Scripts/DebugLogManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,9 @@ public string GetAllLogs()
17551755
/// <remarks>You mustn't modify the returned buffers in any way.</remarks>
17561756
public void GetAllLogs( out DynamicCircularBuffer<DebugLogEntry> logEntries, out DynamicCircularBuffer<DebugLogEntryTimestamp> logTimestamps )
17571757
{
1758+
// Process all pending logs since we want to return "all" logs
1759+
ProcessQueuedLogs( queuedLogEntries.Count );
1760+
17581761
logEntries = uncollapsedLogEntries;
17591762
logTimestamps = uncollapsedLogEntriesTimestamps;
17601763
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.yasirkula.ingamedebugconsole",
33
"displayName": "In-game Debug Console",
4-
"version": "1.8.0",
4+
"version": "1.8.1",
55
"documentationUrl": "https://github.com/yasirkula/UnityIngameDebugConsole",
66
"changelogUrl": "https://github.com/yasirkula/UnityIngameDebugConsole/releases",
77
"licensesUrl": "https://github.com/yasirkula/UnityIngameDebugConsole/blob/master/LICENSE.txt",

0 commit comments

Comments
 (0)