Skip to content

Commit 20ba987

Browse files
Jean Lauliacfacebook-github-bot
Jean Lauliac
authored andcommitted
packager: TerminalReporter: stop reporting global cache errors
Summary: At FB we log errors into the error infra, and these errors are not actionnable for end users, so let's reduce the noise generated on the terminal. In the OSS case, people can simply add a handler in a TerminalReporter decorator, the same way we do internally (anyhow, I do not know of anyone using the global cache in OSS for now). Reviewed By: davidaurelio Differential Revision: D4762858 fbshipit-source-id: 880c02e175ae551df11b7ce273acc318222c46bf
1 parent dcf3cbe commit 20ba987

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packager/src/lib/TerminalReporter.js

-4
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ class TerminalReporter {
148148
case 'dep_graph_loaded':
149149
terminal.log(`${DEP_GRAPH_MESSAGE}, done.`);
150150
break;
151-
case 'global_cache_error':
152-
const message = JSON.stringify(event.error.message);
153-
reporting.logWarning(terminal, 'the global cache failed: %s', message);
154-
break;
155151
case 'global_cache_disabled':
156152
this._logCacheDisabled(event.reason);
157153
break;

0 commit comments

Comments
 (0)