]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6098 remove log statements
authorStas Vilchik <vilchiks@gmail.com>
Wed, 28 Jan 2015 13:16:56 +0000 (14:16 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 28 Jan 2015 13:16:56 +0000 (14:16 +0100)
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
server/sonar-web/src/main/coffee/issues/facets/assignee-facet.coffee
server/sonar-web/src/main/js/application.js
server/sonar-web/src/main/js/navigator/filters/ajax-select-filters.js
server/sonar-web/src/main/js/translate.js

index d9697a317d307ade45d1118fcda0259780d23841..6d8e9bf11daede26f9d2663164cc66c66c69d11f 100644 (file)
@@ -211,7 +211,6 @@ define [
       if @ui.tagsList.show
         @ui.tagsList.show()
       if @ui.tagInput.select2
-        console.log @tagsBuffer
         @ui.tagInput.select2 'val', @tagsBuffer
         @ui.tagInput.select2 'close'
       if @ui.tagsEdit.hide
index 7e3cc59ce327b728d034a5e9ce849f9e5cee0195..c2f1e99ac650eaeed764d447e815199d6215dcfd 100644 (file)
@@ -68,7 +68,6 @@ define [
       # put "unassigned" first
       _.sortBy values, (v) ->
         x = if v.val == '' then -999999 else -v.count
-        console.log v.val, x
         x
 
 
index 629f45e7612420a9bfb7d5b7807dd38374613e1b..abf173cdcd301b320020428d558700b88fb22098 100644 (file)
@@ -250,7 +250,6 @@ function openAccordionItem(url) {
       }).fail(function (jqXHR, textStatus) {
         var error = 'Server error. Please contact your administrator. The status of the error is : ' +
           jqXHR.status + ', textStatus is : ' + textStatus;
-        console.log(error);
         $j('#accordion-panel').append($j('<div class="error">').append(error));
       }).done(function (html) {
           var panel = $j('#accordion-panel');
index 4037f7172b9e4a5deb6668a5873f9cfa917ac9a7..6e4834919e6c9899ace69945ddc5cbe7c7d50e93 100644 (file)
@@ -150,7 +150,6 @@ define([
             that.$('.navigator-filter-search').removeClass('fetching-error');
           },
           error: function() {
-            console.log(arguments);
             that.showSearchError();
           }
         });
index 9daa77f88991b2178e3368bd02ce81bfd58cfff1..03ad0997282366826a3fe78430cb8c98ec08a100 100644 (file)
@@ -1,12 +1,6 @@
 (function() {
   window.suppressTranslationWarnings = false;
 
-  var warn = function(message) {
-    if (!window.suppressTranslationWarnings && console != null && typeof console.warn === 'function') {
-      console.warn(message);
-    }
-  };
-
   window.t = function() {
     if (!window.messages) {
       return window.translate.apply(this, arguments);
@@ -14,9 +8,6 @@
 
     var args = Array.prototype.slice.call(arguments, 0),
         key = args.join('.');
-    if (!window.messages[key]) {
-      warn('No translation for "' + key + '"');
-    }
     return (window.messages && window.messages[key]) || key;
   };
 
@@ -28,8 +19,6 @@
       args.forEach(function(p, i) {
         message = message.replace('{' + i + '}', p);
       });
-    } else {
-      warn('No translation for "' + key + '"');
     }
     return message || '';
   };
     if (found) {
       result = tokens.reduce(function(prev, current) {
         if (!current || !prev[current]) {
-          warn('No translation for "' + key + '"');
           found = false;
         }
         return current ? prev[current] : prev;
       }, start);
-    } else {
-      warn('No translation for "' + key + '"');
     }
 
     return found ? result : key;