gluon/chromium: disable CDP debug logging

This commit is contained in:
CanadaHonk 2022-12-13 21:35:06 +00:00
parent 442da0aa87
commit 6cbfb18025

View File

@ -31,7 +31,7 @@ export default async ({ browserName, browserPath, dataPath }, { url, windowSize
const onMessage = msg => {
msg = JSON.parse(msg);
log('received', msg);
// log('received', msg);
if (onReply[msg.id]) {
onReply[msg.id](msg);
delete onReply[msg.id];
@ -57,7 +57,7 @@ export default async ({ browserName, browserPath, dataPath }, { url, windowSize
pipeWrite.write(JSON.stringify(msg));
pipeWrite.write('\0');
log('sent', msg);
// log('sent', msg);
const reply = await new Promise(res => {
onReply[id] = msg => res(msg);