Reduce debug logging
This commit is contained in:
parent
8b7e42ad25
commit
aabbe1c70d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user