Skip to content

Commit f5f3e91

Browse files
committed
Remove redundant logging
1 parent cee64d3 commit f5f3e91

5 files changed

Lines changed: 2 additions & 9 deletions

File tree

demo/js/app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export const app = (window.app = createApp({
113113
preview.clear();
114114
preview.devMode = prevDevMode;
115115

116-
console.log('processGcode:', filename);
117116
await preview.processGCode(gcodeStream, { render: false }); // rendering will be done reactively
118117
};
119118

@@ -176,11 +175,8 @@ export const app = (window.app = createApp({
176175
watch(enableDevMode, applyDevMode);
177176

178177
onMounted(async () => {
179-
console.log('App mounted');
180178
await selectPreset(defaultPreset);
181179

182-
console.log('preset selected. watcheffects', preview);
183-
184180
watchEffect(() => {
185181
preview.backgroundColor = settings.value.backgroundColor;
186182
});

demo/js/tabs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ export function tabs() {
88

99
document.querySelectorAll('.panel').forEach((panel) => {
1010
if (panel.dataset.panel == target.dataset.tab) {
11-
console.log('show', panel);
1211
panel.classList.remove('is-hidden');
1312
document.querySelectorAll('.bulma-is-active').forEach((el) => {
1413
el.classList.remove('bulma-is-active');
1514
});
1615
target.parentElement.classList.add('bulma-is-active');
1716
return;
1817
}
19-
console.log('hide', panel);
2018
panel.classList.add('is-hidden');
2119
});
2220
});

src/helpers/colorMaterial.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function createColorMaterial(
7171
if (cachedMaterials[color]) {
7272
return cachedMaterials[color];
7373
}
74-
console.log('createColorMaterial. not cached');
74+
console.debug('createColorMaterial. not cached', color);
7575

7676
const material = new ShaderMaterial({
7777
vertexShader,

src/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class Job {
204204
} catch (e) {
205205
if (e instanceof NonApplicableIndexer) {
206206
if (e instanceof NonPlanarPathError) {
207-
console.warn('Non-planar path detected; clearing layers');
207+
console.warn('Non-planar path detected; clearing layer index');
208208
this._layers = [];
209209
}
210210
const i = this.indexers.indexOf(indexer);

src/webgl-preview.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,6 @@ export class WebGLPreview {
885885
result = await reader.read();
886886
const length = result.value?.length ?? 0;
887887
if (length === 0) {
888-
console.debug('stream ended');
889888
break;
890889
}
891890
console.debug('reading from stream', Math.floor(length / 1024), 'kB');

0 commit comments

Comments
 (0)