chore: remove debug logs
This commit is contained in:
parent
c5197928b1
commit
82922ee6eb
@ -381,8 +381,9 @@ export class StorageManager {
|
||||
}).catch(console.error);
|
||||
}
|
||||
|
||||
_debugLog(fName, ...args) {
|
||||
console.log(`[DEBUGLOG] StorageManager.${fName}`, { args: args, instance: this });
|
||||
_debugLog() {
|
||||
// _debugLog(fName, ...args) {
|
||||
// console.log(`[DEBUGLOG] StorageManager.${fName}`, { args: args, instance: this });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -221,7 +221,7 @@ export class ExamCorrect {
|
||||
results[partKey] = parseFloat(input.value);
|
||||
}
|
||||
}
|
||||
console.log('results', results);
|
||||
// console.log('results', results);
|
||||
|
||||
const result = this._resultSelect && this._resultSelect.value !== 'none' && this._resultSelect.value;
|
||||
|
||||
@ -247,7 +247,7 @@ export class ExamCorrect {
|
||||
if (results) body.results = results;
|
||||
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({
|
||||
url: EXAM_CORRECT_URL_POST,
|
||||
@ -325,14 +325,14 @@ export class ExamCorrect {
|
||||
date: null,
|
||||
};
|
||||
|
||||
console.log('response', response);
|
||||
// console.log('response', response);
|
||||
|
||||
const candidateRows = (targetRow && [targetRow]) || [...this._element.rows];
|
||||
for (let row of candidateRows) {
|
||||
let userElem = row.cells.item(this._cIndices.get('user'));
|
||||
const userIdent = userElem && userElem.getAttribute(EXAM_CORRECT_USER_ATTR); // TODO use other attribute identifier
|
||||
if (userIdent === user) {
|
||||
console.log('response-update', row);
|
||||
// console.log('response-update', row);
|
||||
let status = STATUS.FAILURE;
|
||||
switch (response.status) {
|
||||
case 'success':
|
||||
@ -480,7 +480,7 @@ export class ExamCorrect {
|
||||
}
|
||||
|
||||
_addRow(rowInfo) {
|
||||
console.log('rowInfo', rowInfo);
|
||||
// console.log('rowInfo', rowInfo);
|
||||
// TODO create and use template for this
|
||||
const newRow = document.createElement('TR');
|
||||
newRow.classList.add('table__row');
|
||||
|
||||
@ -222,8 +222,8 @@ export class HideColumns {
|
||||
hider.style.top = thR.height + 'px';
|
||||
}
|
||||
|
||||
_tableMutated(mutationList, observer) {
|
||||
console.log('_tableMutated', mutationList, observer);
|
||||
_tableMutated(mutationList) {
|
||||
// console.log('_tableMutated', mutationList, observer);
|
||||
|
||||
if (!Array.from(mutationList).some(mutation => mutation.type === 'childList'))
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user