Skip to content

Commit

Permalink
Merge pull request #9 from bradyoo/lower_logging
Browse files Browse the repository at this point in the history
Move logging from info to debug.
  • Loading branch information
arnaudbreton committed May 29, 2014
2 parents b26f84e + 3e64e94 commit 9a83297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions angular-segmentio.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ angular.module('segmentio', ['ng'])
var methodFactory = function(type) {
return function() {
var args = Array.prototype.slice.call(arguments, 0);
$log.info('Call segmentio API with', type, args);
$log.debug('Call segmentio API with', type, args);
if ($window.analytics.initialized) {
$log.info('Segmentio API initialized, calling API');
$log.debug('Segmentio API initialized, calling API');
$window.analytics[type].apply($window.analytics, args);
} else {
$log.info('Segmentio API not yet initialized, queueing call');
$log.debug('Segmentio API not yet initialized, queueing call');
$window.analytics.push([type].concat(args));
}
};
Expand Down Expand Up @@ -58,4 +58,4 @@ angular.module('segmentio', ['ng'])

return service;
}
]);
]);

0 comments on commit 9a83297

Please sign in to comment.