Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: remove console.logs

Brad Barbin240f33ce411e
diff --git a/apps/carbon/app/lib/exchange-rates.server.ts b/apps/carbon/app/lib/exchange-rates.server.ts
index 857abde1b4..83039e8afe 100644
--- a/apps/carbon/app/lib/exchange-rates.server.ts
+++ b/apps/carbon/app/lib/exchange-rates.server.ts
@@ -49,7 +49,7 @@ export class ExchangeRatesClient {
async getExchangeRates(base?: CurrencyCode): Promise<Rates> {
const url = `${this.#apiUrl}?access_key=${this.#apiKey}`;
- console.log(url);
+
const response = await fetch(url);
if (!response.ok) {
diff --git a/apps/carbon/app/modules/inventory/ui/Inventory/InventoryActivity.tsx b/apps/carbon/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
index 7c3112a04d..24307d6e6b 100644
--- a/apps/carbon/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
+++ b/apps/carbon/app/modules/inventory/ui/Inventory/InventoryActivity.tsx
@@ -3,7 +3,6 @@ import Activity from "~/components/Activity";
import type { ItemLedger } from "../../types";
const getActivityText = (ledgerRecord: ItemLedger) => {
- console.log({ ledgerRecord });
switch (ledgerRecord.documentType) {
case "Purchase Receipt":
return `received ${ledgerRecord.quantity} units`;
diff --git a/apps/carbon/app/routes/x+/job+/$jobId.status.tsx b/apps/carbon/app/routes/x+/job+/$jobId.status.tsx
index eb0977452a..3e565d3f4f 100644
--- a/apps/carbon/app/routes/x+/job+/$jobId.status.tsx
+++ b/apps/carbon/app/routes/x+/job+/$jobId.status.tsx
@@ -25,8 +25,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
- console.log({ status });
-
if (status === "Ready") {
const { data } = await client
.from("job")
@@ -34,8 +32,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
.eq("id", id)
.single();
- console.log(data);
-
if (data?.item?.itemReplenishment?.manufacturingBlocked) {
throw redirect(
path.to.job(id),
diff --git a/apps/carbon/app/routes/x+/settings+/terms.tsx b/apps/carbon/app/routes/x+/settings+/terms.tsx
index 1cf56f0e3d..2cf8cb17f3 100644
--- a/apps/carbon/app/routes/x+/settings+/terms.tsx
+++ b/apps/carbon/app/routes/x+/settings+/terms.tsx
@@ -1,4 +1,4 @@
-import { useCarbon , error } from "@carbon/auth";
+import { error, useCarbon } from "@carbon/auth";
import type { JSONContent } from "@carbon/react";
import {
Badge,
@@ -103,7 +103,7 @@ export default function Terms() {
const onUploadImage = async (file: File) => {
// Implement image upload logic here
// This is a placeholder function
- console.log("Image upload not implemented", file);
+ console.error("Image upload not implemented", file);
return "";
};