diff --git a/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreHubEventStreamHandler.kt b/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreHubEventStreamHandler.kt index 7d52863be7..512f596210 100644 --- a/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreHubEventStreamHandler.kt +++ b/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreHubEventStreamHandler.kt @@ -167,7 +167,7 @@ class DataStoreHubEventStreamHandler : EventChannel.StreamHandler { } } else -> { - LOG.error("Unrecognized DataStoreHubEvent: " + hubEvent.name) + LOG.info("Unhandled DataStoreHubEvent: " + hubEvent.name + "\n" + hubEvent.data.toString()) } } } catch (e: Exception) { diff --git a/packages/amplify_datastore/ios/Classes/DataStoreHubEventStreamHandler.swift b/packages/amplify_datastore/ios/Classes/DataStoreHubEventStreamHandler.swift index 870f763309..fd69b91c26 100644 --- a/packages/amplify_datastore/ios/Classes/DataStoreHubEventStreamHandler.swift +++ b/packages/amplify_datastore/ios/Classes/DataStoreHubEventStreamHandler.swift @@ -114,7 +114,7 @@ public class DataStoreHubEventStreamHandler: NSObject, FlutterStreamHandler { case HubPayload.EventName.Amplify.configured: print("DataStorePlugin successfully initialized") default: - print("Unrecognized DataStoreHubEvent: \(payload.eventName)" ) + print("Unhandled DataStoreHubEvent: \(payload.eventName) \(payload.data ?? "")" ) } } }