Commit eee337d
[mysql] Log warning on 1045 error when SSL not configured (DataDog#23607)
* [mysql] Log warning on 1045 error when SSL not configured
When pymysql raises OperationalError(1045) and no ssl config is present,
log a warning suggesting SSL may be required by the MySQL instance.
This helps diagnose cases where CloudSQL or other managed MySQL services
enforce SSL and return 1045 instead of a clear SSL error.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Rename changelog entry to match PR number 23607
* Fix log capture in 1045 SSL warning tests
CheckLoggingAdapter is a data descriptor — patch.object on the instance
is silently ignored. Capture warnings via check.log.logger handler instead.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Remove test additions from PR — fix only
---------
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent c84ac0c commit eee337d
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
566 | 578 | | |
567 | 579 | | |
568 | 580 | | |
| |||
0 commit comments