Skip to content

Commit ed2df53

Browse files
committed
remove logs
1 parent a920de9 commit ed2df53

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

api.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ ENV NODE_ENV=production
2424

2525
EXPOSE 4000
2626

27+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
28+
CMD wget --no-verbose --tries=1 --spider http://localhost:4000/health || exit 1
29+
2730
WORKDIR /app/apps/api
2831

2932
CMD ["bun", "run", "src/index.ts"]

apps/api/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ const app = new Elysia()
6161
const method = request.method;
6262
const startTime = Date.now();
6363

64-
// Extract route from path (e.g., "/rpc/websites.list" -> "websites.list")
6564
const route = path.startsWith("/rpc/") ? path.slice(5) : path;
6665
const { span, activeContext } = startRequestSpan(
6766
method,
6867
request.url,
6968
route
7069
);
7170

72-
// Store span, context, and start time in Elysia store
7371
store.tracing = {
7472
span,
7573
activeContext,
@@ -130,7 +128,6 @@ const app = new Elysia()
130128

131129
return response ?? new Response("Not Found", { status: 404 });
132130
} catch (error) {
133-
// Record ORPC errors in OpenTelemetry
134131
if (error instanceof ORPCError) {
135132
recordORPCError({
136133
code: error.code,

packages/rpc/src/orpc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export const createRPCContext = async (opts: { headers: Headers }) => {
1313
headers: opts.headers,
1414
});
1515

16-
console.log("createRPCContext", session);
17-
console.log("createRPCContext", opts.headers);
1816
return {
1917
db,
2018
auth,

0 commit comments

Comments
 (0)