Commit 41f166e
committed
Add debug logging for SPOG x-databricks-org-id header extraction
Mirrors the JDBC driver's logging pattern. Emits at DEBUG level in three
code paths of _extract_spog_headers:
1. http_path has a query string but no ?o= param — log and skip.
2. x-databricks-org-id already set by the caller (via http_headers) —
log and skip (don't override explicit user header).
3. Injection happens — log the extracted workspace ID so customers
diagnosing SPOG routing can confirm the header was added.
Helps with customer support: when a customer reports "SPOG isn't
routing correctly", they can enable DEBUG logging and immediately see
whether the connector saw their ?o= value.
Signed-off-by: Madhavendra Rathore
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent c3e7920 commit 41f166e
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
| |||
0 commit comments