chore: remove debug logs

This commit is contained in:
Gregor Kleen 2020-02-07 21:48:08 +01:00
parent c5197928b1
commit 82922ee6eb
3 changed files with 10 additions and 9 deletions

View File

@ -381,8 +381,9 @@ export class StorageManager {
}).catch(console.error); }).catch(console.error);
} }
_debugLog(fName, ...args) { _debugLog() {
console.log(`[DEBUGLOG] StorageManager.${fName}`, { args: args, instance: this }); // _debugLog(fName, ...args) {
// console.log(`[DEBUGLOG] StorageManager.${fName}`, { args: args, instance: this });
} }
} }

View File

@ -221,7 +221,7 @@ export class ExamCorrect {
results[partKey] = parseFloat(input.value); results[partKey] = parseFloat(input.value);
} }
} }
console.log('results', results); // console.log('results', results);
const result = this._resultSelect && this._resultSelect.value !== 'none' && this._resultSelect.value; const result = this._resultSelect && this._resultSelect.value !== 'none' && this._resultSelect.value;
@ -247,7 +247,7 @@ export class ExamCorrect {
if (results) body.results = results; if (results) body.results = results;
if (result) body.grade = result === 'result' ? this._resultGradeSelect.value : (result === 'delete' ? null : result); if (result) body.grade = result === 'result' ? this._resultGradeSelect.value : (result === 'delete' ? null : result);
console.log('request body', body); // console.log('request body', body);
this._app.httpClient.post({ this._app.httpClient.post({
url: EXAM_CORRECT_URL_POST, url: EXAM_CORRECT_URL_POST,
@ -325,14 +325,14 @@ export class ExamCorrect {
date: null, date: null,
}; };
console.log('response', response); // console.log('response', response);
const candidateRows = (targetRow && [targetRow]) || [...this._element.rows]; const candidateRows = (targetRow && [targetRow]) || [...this._element.rows];
for (let row of candidateRows) { for (let row of candidateRows) {
let userElem = row.cells.item(this._cIndices.get('user')); let userElem = row.cells.item(this._cIndices.get('user'));
const userIdent = userElem && userElem.getAttribute(EXAM_CORRECT_USER_ATTR); // TODO use other attribute identifier const userIdent = userElem && userElem.getAttribute(EXAM_CORRECT_USER_ATTR); // TODO use other attribute identifier
if (userIdent === user) { if (userIdent === user) {
console.log('response-update', row); // console.log('response-update', row);
let status = STATUS.FAILURE; let status = STATUS.FAILURE;
switch (response.status) { switch (response.status) {
case 'success': case 'success':
@ -480,7 +480,7 @@ export class ExamCorrect {
} }
_addRow(rowInfo) { _addRow(rowInfo) {
console.log('rowInfo', rowInfo); // console.log('rowInfo', rowInfo);
// TODO create and use template for this // TODO create and use template for this
const newRow = document.createElement('TR'); const newRow = document.createElement('TR');
newRow.classList.add('table__row'); newRow.classList.add('table__row');

View File

@ -222,8 +222,8 @@ export class HideColumns {
hider.style.top = thR.height + 'px'; hider.style.top = thR.height + 'px';
} }
_tableMutated(mutationList, observer) { _tableMutated(mutationList) {
console.log('_tableMutated', mutationList, observer); // console.log('_tableMutated', mutationList, observer);
if (!Array.from(mutationList).some(mutation => mutation.type === 'childList')) if (!Array.from(mutationList).some(mutation => mutation.type === 'childList'))
return; return;