mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Removed nslog and patching of console.log
This commit is contained in:
parent
c0c91c6b7e
commit
e74a1de551
@ -6,6 +6,8 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Removed `nslog` dependency
|
||||
|
||||
## 1.104.0
|
||||
|
||||
- The settings-view package now lists a package’s snippets more accurately
|
||||
|
@ -1,5 +1,4 @@
|
||||
const { app } = require('electron');
|
||||
const nslog = require('nslog');
|
||||
const path = require('path');
|
||||
const temp = require('temp');
|
||||
const parseCommandLine = require('./parse-command-line');
|
||||
@ -43,11 +42,6 @@ module.exports = function start(resourcePath, devResourcePath, startTime) {
|
||||
|
||||
const args = parseCommandLine(process.argv.slice(1));
|
||||
|
||||
// This must happen after parseCommandLine() because yargs uses console.log
|
||||
// to display the usage message.
|
||||
const previousConsoleLog = console.log;
|
||||
console.log = nslog;
|
||||
|
||||
args.resourcePath = normalizeDriveLetterName(resourcePath);
|
||||
args.devResourcePath = normalizeDriveLetterName(devResourcePath);
|
||||
|
||||
@ -67,7 +61,6 @@ module.exports = function start(resourcePath, devResourcePath, startTime) {
|
||||
'userData',
|
||||
temp.mkdirSync('atom-user-data-dir-for-main-process-tests')
|
||||
);
|
||||
console.log = previousConsoleLog;
|
||||
app.on('ready', function() {
|
||||
const testRunner = require(path.join(
|
||||
args.resourcePath,
|
||||
|
Loading…
Reference in New Issue
Block a user