Skip to content

fix: remove leftover debug console.log statements#4338

Open
BradPerbs wants to merge 1 commit intoDokploy:canaryfrom
BradPerbs:fix/remove-debug-console-logs
Open

fix: remove leftover debug console.log statements#4338
BradPerbs wants to merge 1 commit intoDokploy:canaryfrom
BradPerbs:fix/remove-debug-console-logs

Conversation

@BradPerbs
Copy link
Copy Markdown

Three stray debug console.log calls were left behind in production code paths. This PR removes them.

Removals:

  • apps/dokploy/components/dashboard/database/backups/restore-backup.tsx
    Logged the full form-submission payload ({ data }) on every backup restore submit.

  • apps/dokploy/components/dashboard/project/add-database.tsx
    Logged field.value for the libsql enableNamespaces field from inside the render callback, so it fired on every re-render of the parent form (every keystroke that re-rendered).

  • apps/dokploy/server/api/routers/project.ts
    Server-side log of the freshly-created targetProject row in the duplicateProject mutation, leaking a DB object into production logs on every duplicate.

Why these and not others: I deliberately kept console.log / console.error calls that look intentional (server boot logs in server.ts, error paths in catch blocks, BullMQ queue lifecycle messages). Only the three above had no surrounding intentional-logging context and were clearly leftover from local debugging.

Risk: zero behaviour change — strictly removes log noise. No tests touch these specific lines.

Three stray debug console.log calls had been left in production code paths:

- restore-backup.tsx: logged the full form payload on every backup restore
  submission.
- add-database.tsx: logged the libsql `enableNamespaces` field value from
  inside a `render` callback, firing on every re-render of the parent form.
- project.ts (duplicateProject mutation): logged the freshly-created
  target project/environment row on the server on every duplicate.

No behaviour change; strictly removes log noise.
@BradPerbs BradPerbs requested a review from Siumauricio as a code owner May 1, 2026 08:25
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant