Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb committed May 16, 2018
1 parent 03c7abb commit 2df7af0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function startProcess(name, args, env) {
"exit",
code => !shuttingDown && log(`${name} exited with code ${code}`)
)
child.on("error", async function (err) {
child.on("error", async function(err) {
if (!(shuttingDown && err.code === "ECONNRESET")) {
// if we throw errors here, they are not handled by the main process
let errorMessage = [
Expand Down Expand Up @@ -376,14 +376,14 @@ function setupLogging(root) {
// redirect stdout/err to logfile
// TODO overwriting console.log sounds like a bad idea, can we find an alternative?
// eslint-disable-next-line no-func-assign
log = function (...args) {
log = function(...args) {
if (DEV) {
console.log(...args)
}
mainLog.write(`main-process: ${args.join(" ")}\r\n`)
}
// eslint-disable-next-line no-func-assign
logError = function (...args) {
logError = function(...args) {
if (DEV) {
console.error(...args)
}
Expand All @@ -394,12 +394,12 @@ function setupLogging(root) {
if (!TEST) {
process.on("exit", shutdown)
// on uncaught exceptions we wait so the sentry event can be sent
process.on("uncaughtException", async function (err) {
process.on("uncaughtException", async function(err) {
logError("[Uncaught Exception]", err)
Raven.captureException(err)
handleCrash(err)
})
process.on("unhandledRejection", async function (err) {
process.on("unhandledRejection", async function(err) {
logError("[Unhandled Promise Rejection]", err)
Raven.captureException(err)
handleCrash(err)
Expand Down Expand Up @@ -499,7 +499,7 @@ async function reconnect(seeds) {
.then(() => true, () => false)
log(
`${new Date().toLocaleTimeString()} ${nodeIP} is ${
nodeAlive ? "alive" : "down"
nodeAlive ? "alive" : "down"
}`
)

Expand Down

0 comments on commit 2df7af0

Please sign in to comment.