Skip to content

Commit

Permalink
Restore choo-log and silence it in production (fixes #108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rik Smith-Unna committed Jun 29, 2017
1 parent 1746bd5 commit edeae5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/client/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const app = choo({ href: false })

app.use(require('choo-asyncify'))
app.use(require('./models/error'))
if (process.env['SCIENCEFAIR_DEVMODE']) app.use(require('choo-log')())
if (!process.env['SCIENCEFAIR_DEVMODE']) localStorage.logLevel = 'error'
app.use(require('choo-log')())

app.use(require('./models/renderer'))

Expand Down
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"cache-component": "5.0.0-1",
"choo": "v6.0.0-0",
"choo-asyncify": "^0.0.2",
"choo-log": "7.0.0-0",
"copy-paste": "^1.3.0",
"csjs": "^1.0.5",
"csjs-inject": "^1.0.0",
Expand Down

0 comments on commit edeae5c

Please sign in to comment.