-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement auto updates, logging and fix bug where celebration screen …
…could get stuck on top of everything else
- Loading branch information
1 parent
9120d2e
commit 526d0e8
Showing
6 changed files
with
133 additions
and
9 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import log from "electron-log"; | ||
console.log = log.log; | ||
|
||
const DEBUG = process.env.NODE_ENV !== "production"; | ||
|
||
const init = () => { | ||
if(DEBUG){ | ||
log.transports.file.level = "silly"; | ||
} else { | ||
log.transports.file.level = "warn"; | ||
} | ||
|
||
process.on("uncaughtException", (err, origin) => { | ||
log.error(`Caught exception: ${err}, origin: ${origin}`); | ||
}); | ||
}; | ||
|
||
export default { init, log }; |
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
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
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