Remove client id from error

Summary: Ideally, this wouldn't fire at all as it's a timeout but removing the ID will at least allow de-duplication.

Reviewed By: ivanmisuno

Differential Revision: D42800581

fbshipit-source-id: 605f2e81c326a3203c72b253362cb0b27139a134
This commit is contained in:
Pascal Hartig
2023-01-30 06:33:15 -08:00
committed by Facebook GitHub Bot
parent c97e840f20
commit bc0bdcb32f

View File

@@ -129,8 +129,11 @@ export default abstract class AbstractClient extends EventEmitter {
const {plugins} = await timeout(
30 * 1000,
this.rawCall<{plugins: Plugins}>('getPlugins', false),
'Fetch plugin timeout for ' + this.id,
);
'Fetch plugin timeout',
).catch((e) => {
console.warn('Fetch plugin timeout for ' + this.id);
throw e;
});
this.plugins = new Set(plugins);
console.info('AbstractClient.loadPlugins', this.query, plugins);
return plugins;