Downgrade HMR client console.warn to console.log (#58478)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/58478

Downgrade a `console.warn` to `console.log` in HMRClient when the bundle is not loaded from Metro. This message is informational rather than a warning condition.

Changelog: [Internal]

___

Differential Revision: D119640117

fbshipit-source-id: 4af3765af7601929faf37c7f9b8a323b79903610
This commit is contained in:
Pieter De Baets authored and meta-codesync[bot] committed 2026-09-11 03:45:24 -07:00
1 parent 25f48bd72f
commit cf976568b2
1 file changed
+1 -1
+1 -1
View File
@@ -167,7 +167,7 @@ const HMRClient: HMRClientNativeInterface = {
// there's nothing to hot-reload — registering with the server would just log
// spurious "Unable to resolve module" errors.
if (!getDevServer().bundleLoadedFromServer) {
console.warn(
console.log(
'Not enabling Hot Module Reloading: the JS bundle was loaded from a local ' +
'file, not from Metro. To use HMR, load the bundle from the packager.',
);