function onError(error) {
			electronLog.variables.sender = 'log.remote';
			electronLog.logMessageWithTransports(
				{
					data: [
						'cannot send HTTP request to ' + transport.url,
						error,
					],
					level: 'warn',
				},
				[
					electronLog.transports.console,
					electronLog.transports.ipc,
					electronLog.transports.file,
				]
			);
			electronLog.variables.sender = 'main';
		}
We are overriding the default electron-log remote transport
because it doesn't process HTTP response codes,
which is a problem.