Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Added log out of basic system info for debugging use.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob5300 committed Aug 22, 2020
1 parent 478e15f commit f9c2265
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ log.transports.file.format = "[{d}-{m}-{y}] [{h}:{i}:{s}T{z}] -- [{processType}]
log.transports.file.fileName = "main.log";
log.transports.file.maxSize = 10485760;
log.transports.file.getFile();
log.silly("Testing log - MAIN WINDOW");
global.log = log;

const path = global.path;
const majorErrorMessageEnd = "\nPlease report this error to us via email!\[email protected]";

var mainWindow;

function LogDeviceInfo(){
log.log(`Basic System Information: [platform: ${os.platform()}, release: ${os.release()}, arch: ${os.arch()}, systemmem: ${(((os.totalmem()/1024)/1024)/1024).toFixed(2)} gb]`);
}

function createWindow() {
try {
mainWindow = new BrowserWindow({
Expand Down Expand Up @@ -101,6 +104,8 @@ app.on("ready", () => {
createWindow();
autoUpdater.checkForUpdatesAndNotify();
log.info("Launcher was opened and is currently checking for updates.");

LogDeviceInfo();
});

app.on("window-all-closed", function() {
Expand Down

0 comments on commit f9c2265

Please sign in to comment.