Skip to content

Commit cf97656

Browse files
javachemeta-codesync[bot]
authored andcommitted
Downgrade HMR client console.warn to console.log (#58478)
Summary: Pull Request resolved: #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
1 parent 25f48bd commit cf97656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/Libraries/Utilities/HMRClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const HMRClient: HMRClientNativeInterface = {
167167
// there's nothing to hot-reload — registering with the server would just log
168168
// spurious "Unable to resolve module" errors.
169169
if (!getDevServer().bundleLoadedFromServer) {
170-
console.warn(
170+
console.log(
171171
'Not enabling Hot Module Reloading: the JS bundle was loaded from a local ' +
172172
'file, not from Metro. To use HMR, load the bundle from the packager.',
173173
);

0 commit comments

Comments
 (0)