diff --git a/Sources/Subscription/AccountManager.swift b/Sources/Subscription/AccountManager.swift index 885dfae1a..1fc448d37 100644 --- a/Sources/Subscription/AccountManager.swift +++ b/Sources/Subscription/AccountManager.swift @@ -54,7 +54,7 @@ public class AccountManager: AccountManaging { return accessToken != nil } - public convenience init(subscriptionAppGroup: String, accessTokenStorage: SubscriptionTokenStorage) { + public convenience init(subscriptionAppGroup: String?, accessTokenStorage: SubscriptionTokenStorage) { self.init(accessTokenStorage: accessTokenStorage, entitlementsCache: UserDefaultsCache<[Entitlement]>(subscriptionAppGroup: subscriptionAppGroup, key: UserDefaultsCacheKey.subscriptionEntitlements, diff --git a/Sources/Subscription/PurchaseManager.swift b/Sources/Subscription/PurchaseManager.swift index a6dfbe962..d0555c027 100644 --- a/Sources/Subscription/PurchaseManager.swift +++ b/Sources/Subscription/PurchaseManager.swift @@ -85,7 +85,7 @@ public final class PurchaseManager: ObservableObject { return .success(()) } catch { - os_log(.error, log: .subscription, "[PurchaseManager] Error: %{public}s", String(reflecting: error)) + os_log(.error, log: .subscription, "[PurchaseManager] Error: %{public}s (%{public}s)", String(reflecting: error), error.localizedDescription) return .failure(error) } }