Skip to content

fix(plugin-oracle): log connection target string instead of service enum#1434

Merged
datlechin merged 1 commit into
mainfrom
fix/oracle-connection-log-interpolation
May 27, 2026
Merged

fix(plugin-oracle): log connection target string instead of service enum#1434
datlechin merged 1 commit into
mainfrom
fix/oracle-connection-log-interpolation

Conversation

@datlechin
Copy link
Copy Markdown
Member

What

OracleConnection.connect() interpolated the OracleNIO OracleServiceMethod enum into an OSLog debug line. That type conforms to none of OSLog's supported interpolation types, so the build failed with:

Instance method 'appendInterpolation(_:align:privacy:)' requires that 'OracleServiceMethod' conform to 'CustomStringConvertible'

Fix

Log the connection identifier string instead of the enum, using Oracle's Easy Connect separators so the line stays accurate for both modes the SID option (#1431) introduced:

  • service name: host:port/service
  • SID: host:port:sid

No retroactive CustomStringConvertible conformance on the third-party type, and the identifier is what's actually useful when debugging a connection.

Notes

Follow-up to #1431 (still unreleased), so no CHANGELOG entry per the unreleased-fix rule.

@datlechin datlechin merged commit 8f89255 into main May 27, 2026
2 checks passed
@datlechin datlechin deleted the fix/oracle-connection-log-interpolation branch May 27, 2026 11:35
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.

1 participant