This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added log out of basic system info for debugging use.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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({ | ||
|
@@ -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() { | ||
|