Skip to content

Commit

Permalink
Fix a swift 6 error with swiftpm.
Browse files Browse the repository at this point in the history
* For some reason xcodebuild didn't take an issue with
  our global logger, but swiftpm required this revision.

Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Feb 16, 2025
1 parent ad756f3 commit 9e6c494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/OpenUSD/Utility/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import Foundation
import Logging
import Rainbow

/// The standard error stream used for logging errors.
var standardError = FileHandle.standardError

/// Swift Bundler's basic log handler.
struct Handler: LogHandler
{
Expand All @@ -31,6 +28,9 @@ struct Handler: LogHandler

func log(level: Logger.Level, message: Logger.Message, metadata _: Logger.Metadata?, source _: String, file _: String, function _: String, line _: UInt)
{
/// The standard error stream used for logging errors.
var standardError = FileHandle.standardError

let output = "\(level.coloring(level.rawValue + ":")) \(message)"

switch level
Expand All @@ -44,7 +44,7 @@ struct Handler: LogHandler
}

/// The global logger.
var log = Logger(label: "OpenUSD")
let log = Logger(label: "OpenUSD")
{ _ in
Handler()
}

0 comments on commit 9e6c494

Please sign in to comment.