Skip to content

Commit 27c2877

Browse files
authored
fix: remove noisy logs from server fns (#2258)
1 parent 5c8612f commit 27c2877

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎.changeset/brave-hoops-listen.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
Remove leftover debug `console.log` calls from the server functions inspector, which logged on every server function request in dev.

‎packages/start/src/fns/client.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ async function createRequest(base: string, id: string, instance: string, options
1919
},
2020
});
2121
if (import.meta.env.DEV) {
22-
console.log(pushRequest);
2322
pushRequest(id, instance, request.clone());
2423
}
2524
const response = await fetch(request);

‎packages/start/src/shared/dev-toolbar/index.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ export function DevToolbar(props: DevToolbarProps) {
179179
createEffect(() => {
180180
onCleanup(
181181
captureServerFunctionCall(call => {
182-
console.log(call);
183182
if (call.type === "request") {
184183
setStore("instances", call.instance, value => {
185184
return {

0 commit comments

Comments
 (0)