Skip to content

Commit

Permalink
SK1StoreProduct: changed productType warning to debug (#2957)
Browse files Browse the repository at this point in the history
See
https://community.revenuecat.com/sdks-51/purchases-purchasepackage-doesn-t-return-1956?postid=10251#post10251
Because hybrids proactively call this method to construct the internal
representation, it gets logged automatically whether they call it or
not,.

It's still useful, but making it a warning makes it seem more of a bug.
  • Loading branch information
NachoSoto committed Aug 3, 2023
1 parent 38972fa commit f4fa4d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal struct SK1StoreProduct: StoreProductType {
}

var productType: StoreProduct.ProductType {
Logger.warn(Strings.storeKit.sk1_no_known_product_type)
Logger.debug(Strings.storeKit.sk1_no_known_product_type)

return .defaultType
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/StoreKitUnitTests/StoreProductTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class StoreProductTests: StoreKitConfigTestCase {

// Verify warning is only logged when calling method.
expect(product.productType) == .defaultType
self.logger.verifyMessageWasLogged(Strings.storeKit.sk1_no_known_product_type, level: .warn)
self.logger.verifyMessageWasLogged(Strings.storeKit.sk1_no_known_product_type, level: .debug)
}

}
Expand Down

0 comments on commit f4fa4d2

Please sign in to comment.