From 9450de23322fcb17f148846e8746acdf7afc0414 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Wed, 18 Dec 2024 15:37:19 -0300 Subject: [PATCH] Change the type of LogContext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t actually emit any context at the moment, I believe, nor do we tell users what they’re meant to do with it. But, still, before our first release of the public API, let’s use a type that the user can at least easily pass through to a logging backend. We still have #8 for figuring out what this context is actually meant to be used for. --- Sources/AblyChat/Logging.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AblyChat/Logging.swift b/Sources/AblyChat/Logging.swift index 2d6c7d6..88c35af 100644 --- a/Sources/AblyChat/Logging.swift +++ b/Sources/AblyChat/Logging.swift @@ -1,6 +1,6 @@ import os -public typealias LogContext = [String: any Sendable] +public typealias LogContext = [String: JSONValue] public protocol LogHandler: AnyObject, Sendable { /**