Merge pull request #5752 from connnnal/tprint-comment

Remove inaccurate tprint concern
This commit is contained in:
Jeroen van Rijn
2025-10-04 16:50:13 +02:00
committed by GitHub

View File

@@ -193,7 +193,7 @@ log :: proc(level: Level, args: ..any, sep := " ", location := #caller_location)
return
}
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
str := fmt.tprint(..args, sep=sep) //NOTE(Hoej): While tprint isn't thread-safe, no logging is.
str := fmt.tprint(..args, sep=sep)
logger.procedure(logger.data, level, str, logger.options, location)
}