Remove "JavaScript logs have moved!" notice (#55075)

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

It's been >1y since we introduced this notice (and introduced the `--client-logs` flag) — clean up.

Changelog:
[General][Changed] - Remove "JavaScript logs have moved!" notice from dev server CLI

Reviewed By: hoxyq

Differential Revision: D90247471

fbshipit-source-id: dc13c90476c65c301bdb3a51db91f0e5fe0b326b
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-01-07 06:51:02 -08:00
1 parent f140c4906b
commit 4bd62a1d41
4 files changed
-33

No files matched your search

@@ -160,17 +160,6 @@ function createWrappedEventReporter(
event.appId ?? 'unknown',
);
break;
case 'fusebox_console_notice':
logger?.info(
'\u001B[1m\u001B[7m💡 JavaScript logs have moved!\u001B[22m They can now be ' +
'viewed in React Native DevTools. Tip: Type \u001B[1mj\u001B[22m in ' +
'the terminal to open' +
(experiments.enableStandaloneFuseboxShell
? ''
: ' (requires Google Chrome or Microsoft Edge)') +
'.\u001B[27m',
);
break;
case 'fusebox_shell_preparation_attempt':
switch (event.result.code) {
case 'success':
@@ -54,8 +54,6 @@ export const WS_CLOSE_REASON = {
// more details.
const FILE_PREFIX = 'file://';
let fuseboxConsoleNoticeLogged = false;
type DebuggerConnection = {
// Debugger web socket connection
socket: WS,
@@ -542,7 +540,6 @@ export default class Device {
// created instead of manually checking this on every getPages result.
for (const page of this.#pages.values()) {
if (this.#pageHasCapability(page, 'nativePageReloads')) {
this.#logFuseboxConsoleNotice();
continue;
}
@@ -1092,14 +1089,4 @@ export default class Device {
dangerouslyGetSocket(): WS {
return this.#deviceSocket;
}
// TODO(T214991636): Remove notice
#logFuseboxConsoleNotice() {
if (fuseboxConsoleNoticeLogged) {
return;
}
this.#deviceEventReporter?.logFuseboxConsoleNotice();
fuseboxConsoleNoticeLogged = true;
}
}
@@ -231,12 +231,6 @@ class DeviceEventReporter {
});
}
logFuseboxConsoleNotice(): void {
this.#eventReporter.logEvent({
type: 'fusebox_console_notice',
});
}
#logExpiredCommand(pendingCommand: PendingCommand): void {
this.#eventReporter.logEvent({
type: 'debugger_command',
@@ -88,9 +88,6 @@ export type ReportableEvent =
status: 'success',
...DebuggerSessionIDs,
}
| {
type: 'fusebox_console_notice',
}
| {
type: 'no_debug_pages_for_device',
...DebuggerSessionIDs,