Skip to content

Electron should not spam the terminal with internal log events #12438

@sindresorhus

Description

@sindresorhus
  • Electron version: 2.0.0-beta.5
  • Operating system: macOS 10.13.3

Expected behavior

I expected nothing to be shown in the terminal by default.

Actual behavior

Electron spams the terminal:

2018-03-26 22:28:45.642 Electron[28904:4880139] *** WARNING: Textured window <EventDispatchingWindow: 0x7ff4c6fcbd60> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
2018-03-26 22:28:45.904 Electron Helper[28912:4880190] Couldn't set selectedTextBackgroundColor from default ()

How to reproduce

Run this and look at the terminal output:

const electron = require('electron');

electron.app.on('ready', () => {
	const win = new electron.BrowserWindow({show: true});
	win.loadURL('https://google.com');
	win.openDevTools();
});

In my private app, I also get other events logged, when I show DevTools before the page has loaded:

[26570:0326/221530.524351:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)
[26570:0326/221531.517350:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)
[26570:0326/221532.520244:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)
[26570:0326/221533.517304:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)
[26570:0326/221534.519767:ERROR:CONSOLE(7574)] "Extension server error: Operation failed: : has no execution context", source: chrome-devtools://devtools/bundled/inspector.js (7574)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions