Fix Swift 6 concurrency warning for showDebugLogs
Mark showDebugLogs as nonisolated(unsafe) to resolve the 'static property is not concurrency-safe' error. This is appropriate for a debug flag that is typically set once at app launch.
This commit is contained in:
parent
9f4046bfd2
commit
40d1285c38
@ -25,7 +25,7 @@ public enum Design {
|
|||||||
// MARK: - Debug
|
// MARK: - Debug
|
||||||
|
|
||||||
/// Set to true to enable debug logging in Bedrock.
|
/// Set to true to enable debug logging in Bedrock.
|
||||||
public static let showDebugLogs = true
|
nonisolated(unsafe) public static var showDebugLogs = true
|
||||||
|
|
||||||
/// Logs a message only in debug builds when `showDebugLogs` is enabled.
|
/// Logs a message only in debug builds when `showDebugLogs` is enabled.
|
||||||
public static func debugLog(_ message: String) {
|
public static func debugLog(_ message: String) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user