Skip to content

Commit

Permalink
Disable setting a sync default logger when creating a sync manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaafanador3 committed Jun 25, 2023
1 parent eec5f45 commit 8f5f6d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ x.y.z Release notes (yyyy-MM-dd)
### Fixed
* Import as `RLMRealm_Private.h` as a module would cause issues when using Realm as a subdependency.
([#8164](https://github.com/realm/realm-swift/issues/8164), since 10.37.0)
* None.
* Disable setting a custom logger by default on the sync client when the sync manager is created.
This was overriding the default logger set using `RLMLogger.defaultLogger`. (since v10.39.0).

<!-- ### Breaking Changes - ONLY INCLUDE FOR NEW MAJOR version -->

Expand Down
1 change: 0 additions & 1 deletion Realm/RLMSyncManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ - (instancetype)initWithSyncManager:(std::shared_ptr<realm::SyncManager>)syncMan
+ (SyncClientConfig)configurationWithRootDirectory:(NSURL *)rootDirectory appId:(NSString *)appId {
SyncClientConfig config;
bool should_encrypt = !getenv("REALM_DISABLE_METADATA_ENCRYPTION") && !RLMIsRunningInPlayground();
config.logger_factory = defaultSyncLogger;
config.metadata_mode = should_encrypt ? SyncManager::MetadataMode::Encryption
: SyncManager::MetadataMode::NoEncryption;
@autoreleasepool {
Expand Down

0 comments on commit 8f5f6d0

Please sign in to comment.