Removed development logging.

This commit is contained in:
Tom Butcher 2025-12-27 15:19:18 +00:00
parent 8eafc81321
commit 237383d3c4
5 changed files with 1 additions and 9 deletions

View File

@ -54,8 +54,6 @@ orderItemSchema.statics.stats = async function () {
rollupConfigs: rollupConfigs,
});
console.log(results);
// Transform the results to match the expected format
return results;
};
@ -132,8 +130,6 @@ orderItemSchema.statics.recalculate = async function (orderItem, user) {
],
});
console.log('rollupResults', rollupResults);
const totals = rollupResults.orderTotals || {};
const totalAmount = totals.totalAmount.sum?.toFixed(2) || 0;
const totalAmountWithTax = totals.totalAmountWithTax.sum?.toFixed(2) || 0;

View File

@ -92,8 +92,6 @@ printerSchema.statics.stats = async function () {
rollupConfigs: rollupConfigs,
});
console.log(results);
// Transform the results to match the expected format
return results;
};

View File

@ -28,7 +28,6 @@ export class StatsManager {
(key, value) => {
if (!value?.result) {
logger.trace('Stats update detected:', type);
console.log('Stats update detected:', type, value);
this.socketClient.socket.emit('modelStats', {
objectType: type,
stats: { ...value }

View File

@ -33,7 +33,6 @@ export async function generatePDF(html, options = {}) {
var height = `${options?.height || '50'}mm`;
if (options.height == 'auto') {
console.log('Calculating height');
const calculatedHeight = await page.evaluate(() => {
return document.getElementById('content').scrollHeight;
});

View File

@ -430,7 +430,7 @@ export class TemplateManager {
documentTemplate.parent.content == null ||
typeof documentTemplate.parent.content !== 'string'
) {
console.log(
logger.error(
'Parent template content is required and must be a string.',
documentTemplate.parent.content
);