diff --git a/apps/macos/Sources/Clawdis/Logging/ClawdisLogging.swift b/apps/macos/Sources/Clawdis/Logging/ClawdisLogging.swift index b759828c1..21f3c091b 100644 --- a/apps/macos/Sources/Clawdis/Logging/ClawdisLogging.swift +++ b/apps/macos/Sources/Clawdis/Logging/ClawdisLogging.swift @@ -1,6 +1,7 @@ @_exported import Logging import Foundation import OSLog +import os typealias Logger = Logging.Logger @@ -96,7 +97,7 @@ extension Logger.Message.StringInterpolation { } struct ClawdisOSLogHandler: LogHandler { - private let osLogger: OSLog.Logger + private let osLogger: os.Logger var metadata: Logger.Metadata = [:] var logLevel: Logger.Level { @@ -105,7 +106,7 @@ struct ClawdisOSLogHandler: LogHandler { } init(subsystem: String, category: String) { - self.osLogger = OSLog.Logger(subsystem: subsystem, category: category) + self.osLogger = os.Logger(subsystem: subsystem, category: category) } subscript(metadataKey key: String) -> Logger.Metadata.Value? { diff --git a/apps/macos/Tests/ClawdisIPCTests/MacGatewayChatTransportMappingTests.swift b/apps/macos/Tests/ClawdisIPCTests/MacGatewayChatTransportMappingTests.swift index 4ba889904..cb3d9bb0e 100644 --- a/apps/macos/Tests/ClawdisIPCTests/MacGatewayChatTransportMappingTests.swift +++ b/apps/macos/Tests/ClawdisIPCTests/MacGatewayChatTransportMappingTests.swift @@ -9,7 +9,10 @@ import Testing presence: [], health: ClawdisProtocol.AnyCodable(["ok": ClawdisProtocol.AnyCodable(false)]), stateversion: StateVersion(presence: 1, health: 1), - uptimems: 123) + uptimems: 123, + configpath: nil, + statedir: nil) + let hello = HelloOk( type: "hello", _protocol: 2, @@ -55,7 +58,7 @@ import Testing } @Test func chatEventMapsToChat() { - let payload: ClawdisProtocol.AnyCodable = ClawdisProtocol.AnyCodable([ + let payload = ClawdisProtocol.AnyCodable([ "runId": ClawdisProtocol.AnyCodable("run-1"), "sessionKey": ClawdisProtocol.AnyCodable("main"), "state": ClawdisProtocol.AnyCodable("final"),