Skip to content

Commit

Permalink
Remove console output from build version
Browse files Browse the repository at this point in the history
  • Loading branch information
sork committed Mar 26, 2012
1 parent 863a580 commit 749fc5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/js/lib/log.js
@@ -1,8 +1,13 @@

var Logger = function(level) {
this.level = level;
this.level = level;
};

Logger.prototype.info = function() {};
Logger.prototype.debug = function() {};
Logger.prototype.error = function() {};

//>>excludeStart("prodHost", pragmas.prodHost);
Logger.prototype.info = function(message) {
if(this.level === "debug" || this.level === "info") {
if(window.console) {
Expand All @@ -29,5 +34,6 @@ Logger.prototype.error = function(message, stacktrace) {
}
}
};

//>>excludeEnd("prodHost");

log = new Logger("debug");

0 comments on commit 749fc5a

Please sign in to comment.