Removed debugging console log
This commit is contained in:
parent
94c0fd7c42
commit
f09dd20d2b
|
|
@ -78,18 +78,16 @@ export default class extends Controller {
|
|||
// If closed, log it for debugging.
|
||||
try {
|
||||
if (this.eventSource.readyState === EventSource.CLOSED) {
|
||||
console.log('Connection closed. Will retry...');
|
||||
console.log();
|
||||
} else if (this.eventSource.readyState === EventSource.CONNECTING) {
|
||||
console.log('Connection is reconnecting (CONNECTING).');
|
||||
console.log();
|
||||
} else if (this.eventSource.readyState === EventSource.OPEN) {
|
||||
console.log('Connection is open (OPEN).');
|
||||
console.log();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Error while checking EventSource state:', e);
|
||||
}
|
||||
};
|
||||
|
||||
console.log('EventSource connected to:', url.toString());
|
||||
} catch (error) {
|
||||
console.error('Failed to connect to Mercure:', error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue