Skip to content

Commit

Permalink
Use console.debug for debug-specific data service logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaede authored and marchant committed Dec 22, 2018
1 parent 6580957 commit 7738076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/service/data-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,8 @@ exports.DataService = Montage.specialize(/** @lends DataService.prototype */ {

// Check if property is included in debugProperties. Intended for debugging
if (debug) {
console.log("DataService.fetchObjectProperty", object, propertyName);
console.log("To debug DataService.mapRawDataToObjectProperty for " + propertyName + ", place a breakpoint at this line in your browser's developer tools.");
console.debug("DataService.fetchObjectProperty", object, propertyName);
console.debug("To debug ExpressionDataMapping.mapRawDataToObjectProperty for " + propertyName + ", set a breakpoint here.");
}

return useDelegate ? this.fetchRawObjectProperty(object, propertyName) :
Expand Down
4 changes: 2 additions & 2 deletions data/service/expression-data-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ exports.ExpressionDataMapping = DataMapping.specialize(/** @lends ExpressionData

// Check if property is included in the DataService.debugProperties collection. Intended for debugging.
if (debug) {
console.log("ExpressionDataMapping.mapRawDataToObjectProperty", object, propertyName);
console.log("To debug ExpressionDataMapping.mapRawDataToObjectProperty for " + propertyName + ", place a breakpoint at this line in your browser's developer tools.");
console.debug("ExpressionDataMapping.mapRawDataToObjectProperty", object, propertyName);
console.debug("To debug ExpressionDataMapping.mapRawDataToObjectProperty for " + propertyName + ", set a breakpoint here.");
}

scope.value = data;
Expand Down

0 comments on commit 7738076

Please sign in to comment.