Skip to content

Commit

Permalink
Don't report minor stream errors (just full disconnect)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Oct 24, 2024
1 parent 6671b63 commit d5f6a61
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/model/proxy-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import {
action,
flow,
computed,
observe,
runInAction,
observe
} from 'mobx';

import {
Expand Down Expand Up @@ -226,12 +225,10 @@ export class ProxyStore {

private monitorRemoteClientConnection(client: PluggableAdmin.AdminClient<{}>) {
client.on('stream-error', (err) => {
console.log('Admin client stream error');
logError(err.message ? err : new Error('Client stream error'), { cause: err });
console.log('Admin client stream error', err);
});
client.on('subscription-error', (err) => {
console.log('Admin client subscription error');
logError(err.message ? err : new Error('Client subscription error'), { cause: err });
console.log('Admin client subscription error', err);
});
client.on('stream-reconnect-failed', (err) => {
logError(err.message ? err : new Error('Client reconnect error'), { cause: err });
Expand Down

0 comments on commit d5f6a61

Please sign in to comment.