Skip to content

fix: better and less verbose logging#3500

Merged
tefkah merged 4 commits intomainfrom
tfk/improve-logs
Feb 23, 2026
Merged

fix: better and less verbose logging#3500
tefkah merged 4 commits intomainfrom
tfk/improve-logs

Conversation

@tefkah
Copy link
Copy Markdown
Member

@tefkah tefkah commented Feb 23, 2026

Issue(s) Resolved

Extremely noisy logs make it hard to debug

  • Only enable the extremely verbose timing logs if DEBUG_LOG env var is set
  • Make doing pn start work by reading .env.development. this should probably be changed but whatever
  • log all routes, include much more detailed info about those routes. Not sure about adding the user there, maybe that's not allowed

Example:

 POST 400 /api/login 1ms | host=demo.pubpub.org | user=anon | ip=::1 | size=188 | ua=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/2.5.17 Chrome/142.0.7444.265 Electron/39.3.0 Safari/537.36 | origin=http://localhost:9876

Test Plan

Screenshots (if applicable)

Optional

Notes/Context/Gotchas

Supporting Docs

@tefkah tefkah requested a review from isTravis February 23, 2026 13:29
@tefkah tefkah merged commit 824bde4 into main Feb 23, 2026
1 check passed
@isTravis isTravis deleted the tfk/improve-logs branch February 23, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants