Skip to content

Commit bb3edf6

Browse files
move closer to usage
1 parent 32610fa commit bb3edf6

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/unity-logging.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ export interface LogTailResult {
2424
telemetry: UTP[];
2525
}
2626

27-
/**
28-
* Editor log messages whose severity has been changed.
29-
* Useful for making certain error messages that are not critical less noisy.
30-
* Key is the exact log message, value is the remapped LogLevel.
31-
*/
32-
const remappedEditorLogs: Record<string, LogLevel> = {
33-
'OpenCL device, baking cannot use GPU lightmapper.': LogLevel.INFO,
34-
'Failed to find a suitable OpenCL device, baking cannot use GPU lightmapper.': LogLevel.INFO,
35-
'~StackAllocator(ALLOC_TEMP_MAIN) m_LastAlloc not NULL. Did you forget to call FreeAllStackAllocations()?': LogLevel.INFO,
36-
};
37-
3827
// Detects GitHub-style annotation markers to avoid emitting duplicates
3928
const githubAnnotationPrefixRegex = /\n::[a-z]+::/i;
4029
// Matches ANSI escape sequences (CSI and single-character)
@@ -935,6 +924,17 @@ async function writeUtpTelemetryLog(filePath: string, entries: UTP[], logger: Lo
935924
}
936925
}
937926

927+
/**
928+
* Editor log messages whose severity has been changed.
929+
* Useful for making certain error messages that are not critical less noisy.
930+
* Key is the exact log message, value is the remapped LogLevel.
931+
*/
932+
const remappedEditorLogs: Record<string, LogLevel> = {
933+
'OpenCL device, baking cannot use GPU lightmapper.': LogLevel.INFO,
934+
'Failed to find a suitable OpenCL device, baking cannot use GPU lightmapper.': LogLevel.INFO,
935+
'~StackAllocator(ALLOC_TEMP_MAIN) m_LastAlloc not NULL. Did you forget to call FreeAllStackAllocations()?': LogLevel.INFO,
936+
};
937+
938938
/**
939939
* Tails a log file using fs.watch and ReadStream for efficient reading.
940940
* @param logPath The path to the log file to tail.

0 commit comments

Comments
 (0)