DevClad-Inc / devclad

Avoid using console in code that runs on browser JS-0002
Bug risk
Major
a year agoa year old
Avoid using console in code that runs on the browser
146						if (resp.status === 200) {
147							sendEmail(req, devMode, res, 'approved');
148						} else {
149							console.log(resp);150							res.status(400).json({ message: 'Email not sent' });
151						}
152					});
Unexpected console statement
 82						/*
 83						!close is not received if I don't do something with data here for some absurd reason
 84						*/
 85						console.log(data); 86						peerDataRef.current = conn;
 87					});
 88					conn.on('close', () => {
Unexpected console statement
39app.get('/', (req, res) => res.send('Peer Server is running'));
40
41peerServer.on('connection', (client) => {
42	console.log('client connected', client);43});
Unexpected console statement
37	};
38
39	if (options.debug) {
40		console.log('[Analytics]', metric.name, JSON.stringify(body, null, 2));41	}
42
43	const blob = new Blob([new URLSearchParams(body).toString()], {