Lower logging level in production

This commit is contained in:
Andrew Miner
2015-01-10 12:48:03 -08:00
parent 26a5e028a6
commit eaabb754a2
+4 -1
View File
@@ -14,10 +14,13 @@ CraftingGuideRouter = require './crafting_guide_router'
if typeof(global) is 'undefined'
window.global = window
global.logger = new Logger level:Logger.TRACE
global.logger = new Logger level:Logger.WARNING
global.router = new CraftingGuideRouter
global.util = require 'util'
global.views = views
if window.location.hostname is 'localhost'
logger.level = Logger.TRACE
logger.info "CraftingGuide is ready"
Backbone.history.start pushState:true