Stop printing false positive debug message

Summary: Per title. Deserves a more coherent solution.

Reviewed By: passy

Differential Revision: D29296206

fbshipit-source-id: b8547ebc1f99c24282f79f4b98a8a5fa1d1947cd
This commit is contained in:
Michel Weststrate
2021-06-22 05:19:50 -07:00
committed by Facebook GitHub Bot
parent b9250e7795
commit 603cd08767

View File

@@ -466,7 +466,12 @@ export default class Client extends EventEmitter {
}
}
}
if (!handled && !isProduction()) {
// TODO: Flipper debug as full client is overkill, clean up
if (
!handled &&
!isProduction() &&
params.api !== 'flipper-messages'
) {
console.warn(`Unhandled message ${params.api}.${params.method}`);
}
}