Reduce debug logging

This commit is contained in:
James Lyne 2020-12-17 14:49:02 +00:00
parent 8b7e42ad25
commit aabbe1c70d
5 changed files with 9 additions and 9 deletions

View File

@ -74,7 +74,7 @@ export default defineComponent({
handlePendingUpdates = () => {
useStore().dispatch(ActionTypes.POP_TILE_UPDATES, 10).then(updates => {
for(const update of updates) {
console.log('Updating tile ' + update.name);
// console.log('Updating tile ' + update.name);
layer.updateNamedTile(update.name, update.timestamp);
}

View File

@ -78,10 +78,10 @@ export default defineComponent({
for(const update of updates) {
if(update.removed) {
console.log(`Deleting area ${update.id}`);
// console.log(`Deleting area ${update.id}`);
deleteArea(update.id);
} else {
console.log(`Updating/creating area ${update.id}`);
// console.log(`Updating/creating area ${update.id}`);
layers.set(update.id, updateArea(layers.get(update.id), update.payload as DynmapArea, converter));
}
}

View File

@ -78,10 +78,10 @@ export default defineComponent({
for(const update of updates) {
if(update.removed) {
console.log(`Deleting circle ${update.id}`);
// console.log(`Deleting circle ${update.id}`);
deleteCircle(update.id);
} else {
console.log(`Updating/creating circle ${update.id}`);
// console.log(`Updating/creating circle ${update.id}`);
const layer = updateCircle(layers.get(update.id), update.payload as DynmapCircle, converter)
if(!layers.has(update.id)) {

View File

@ -78,10 +78,10 @@ export default defineComponent({
for(const update of updates) {
if(update.removed) {
console.log(`Deleting line ${update.id}`);
// console.log(`Deleting line ${update.id}`);
deleteLine(update.id);
} else {
console.log(`Updating/creating line ${update.id}`);
// console.log(`Updating/creating line ${update.id}`);
const layer = updateLine(layers.get(update.id), update.payload as DynmapLine, converter)
if(!layers.has(update.id)) {

View File

@ -77,10 +77,10 @@ export default defineComponent({
for(const update of updates) {
if(update.removed) {
console.log(`Deleting marker ${update.id}`);
// console.log(`Deleting marker ${update.id}`);
deleteMarker(update.id);
} else {
console.log(`Updating/creating marker ${update.id}`);
// console.log(`Updating/creating marker ${update.id}`);
layers.set(update.id, updateMarker(layers.get(update.id), update.payload as DynmapMarker, projection));
}
}