Skip to content

Commit

Permalink
fully working
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-Sch committed Jan 17, 2022
1 parent 5d4dbf6 commit 39f2e7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const electron = require('electron');
const { join } = require('path');
const log = require('electron-log');
const electronLog = require('electron-log');
const { autoUpdater } = require('electron-updater');
const { spawn } = require('child_process');
const { writeFileSync, existsSync, mkdirSync, unlinkSync } = require('fs');
Expand All @@ -10,13 +10,14 @@ const fetch = require('node-fetch');
const { app, BrowserWindow, Menu, ipcMain } = electron;
const { info } = require('electron-log');

const log = electronLog.create('main');
const cpuLog = electronLog.create('cpu');
const gpuLog = electronLog.create('gpu');

autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';
log.info('starting the app');

const cpuLog = log.scope('cpu');
const gpuLog = log.scope('gpu');

let currentWindow;
let cpuProc;
let gpuProc;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "robinsch-miner",
"version": "1.0.4",
"version": "1.1.0",
"description": "My xmrig GUI miner",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 39f2e7d

Please sign in to comment.