Skip to content

Commit

Permalink
default to 'trace' logging only on localhost, otherwise 'info'
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jun 3, 2015
1 parent 04556c2 commit 218f1e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/famous-views.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Could use something from --settings too
var isDev = ("localhost" === window.location.hostname);

log = new Logger('famous-views');
Logger.setLevel('famous-views', 'trace');
Logger.setLevel('famous-views', isDev ? 'trace' : 'info');

FView = {};

Expand Down

0 comments on commit 218f1e7

Please sign in to comment.