Skip to content

Conversation

@pyramation
Copy link
Contributor

@pyramation pyramation commented Dec 23, 2025

Summary

Comments out debug and status console.warn statements in PostgisRegisterTypesPlugin.ts that were polluting test output and consumer logs.

Changes:

  • Commented out (not deleted) 4 status/registration messages in graphile-postgis/src/PostgisRegisterTypesPlugin.ts:
    • 'PostGIS plugin enabled'
    • 'Getting ${type.name} type...' debug info
    • 'Registering handler for ${GEOGRAPHY_TYPE.id}'
    • 'Registering handler for ${GEOMETRY_TYPE.id}'

Preserved (no changes):

  • Legitimate warnings inside if statements in other files (PostgisExtensionDetectionPlugin, Postgis_GeometryCollection_GeometriesPlugin, graphile-simple-inflector, graphile-plugin-connection-filter)

Fixes constructive-io/projects-issues#409

Updates since last revision

Per feedback, changed approach from deleting console.warn statements to commenting them out. Restored files with legitimate warnings (those inside if statements) to their original state.

Review & Testing Checklist for Human

  • Verify the commented-out logs are the correct ones (status/registration messages, not error warnings)
  • Run pnpm test in graphile-postgis to verify no regressions

Test plan: Run the graphile-postgis tests to confirm PostGIS functionality still works correctly.

Notes

@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration bot changed the title fix: remove console.warn/console.log from graphile plugins fix: comment out status/registration console.warn in graphile-postgis Dec 24, 2025
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1766533977-remove-console-logs branch from 3e98a9f to b69f8ab Compare December 24, 2025 02:09
Removes debug/informational console output from:
- graphile-postgis: PostgisRegisterTypesPlugin, PostgisExtensionDetectionPlugin, Postgis_GeometryCollection_GeometriesPlugin
- graphile-simple-inflector
- graphile-plugin-connection-filter: PgConnectionArgFilterBackwardRelationsPlugin

Fixes constructive-io/constructive-planning#409

Co-Authored-By: Dan Lynch <[email protected]>
- Comment out (not delete) status/registration messages in PostgisRegisterTypesPlugin.ts:
  - 'PostGIS plugin enabled'
  - 'Getting type...' debug info
  - 'Registering handler for...' messages
- Restore legitimate warnings inside if statements:
  - PostgisExtensionDetectionPlugin: 'PostGIS extension not found'
  - Postgis_GeometryCollection_GeometriesPlugin: 'Unexpectedly couldn't find the interface'
  - graphile-simple-inflector: config hint warning
  - graphile-plugin-connection-filter: config recommendation warning

Co-Authored-By: Dan Lynch <[email protected]>
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1766533977-remove-console-logs branch from b69f8ab to 9bb1bc1 Compare December 24, 2025 02:11
@pyramation pyramation closed this Dec 24, 2025
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