Skip to content

Commit

Permalink
Commenting out some console.log()s
Browse files Browse the repository at this point in the history
  • Loading branch information
etousley committed Aug 31, 2017
1 parent 315ae2a commit bd9b50e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions controllers/logEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.getActivityDefinitions = (req, res) => {
*/
calculateActivityPoints = (logEntry) => {
const activityDefinition = lookups.activitiesSortedAlpha[logEntry.activity];
console.log(JSON.stringify(logEntry));
// console.log(JSON.stringify(logEntry));

// Is it the right time unit?
if (logEntry.durationUnit !== activityDefinition.durationUnit) {
Expand All @@ -27,7 +27,7 @@ calculateActivityPoints = (logEntry) => {

const completedTimeChunks = logEntry.durationValue / activityDefinition.durationValue;
const points = Math.round(completedTimeChunks * activityDefinition.points);
console.log("calculated points: " + points);
// console.log("calculated points: " + points);

return points;
};
Expand Down
8 changes: 4 additions & 4 deletions public/js/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ drawLogEntryModal = (clickedDayElem) => {
data: {"data": entryData},
success: function(data) {
let updatedEntry = data.data;
console.log(updatedEntry);
// console.log(updatedEntry);
updateElemDataset(activeEntryElem, updatedEntry);
updateEntryTitle(activeEntryElem.dataset);
updateModalPoints(updatedEntry);
entryContestField.val(updatedEntry.contest);

entryInfoField.text('Updated entry');
entryInfoField.show();
console.log('Updated entry: ' + JSON.stringify(updatedEntry));
// console.log('Updated entry: ' + JSON.stringify(updatedEntry));
},
error: function(error) {
entryErrorField.text(error.status + " error: " + error.statusText);
Expand All @@ -159,7 +159,7 @@ drawLogEntryModal = (clickedDayElem) => {
entryInfoField.text('Added new entry');
entryInfoField.show();
entryContestField.val(updatedEntry.contest);
console.log('Created entry: ' + JSON.stringify(createdEntry));
// console.log('Created entry: ' + JSON.stringify(createdEntry));
},
error: function(error) {
entryErrorField.text(error.status + " error: " + error.statusText);
Expand All @@ -184,7 +184,7 @@ drawLogEntryModal = (clickedDayElem) => {
entryInfoField.text('Deleted entry');
entryInfoField.show();
entryPointsField.hide();
console.log('Deleted entry');
// console.log('Deleted entry');
},
error: function(error) {
entryErrorField.text(error.status + " error: " + error.statusText);
Expand Down

0 comments on commit bd9b50e

Please sign in to comment.