Skip to content

Commit d02ac9d

Browse files
committed
PYTHON-5493 Add a patch for the log order difference
1 parent 3c786f5 commit d02ac9d

File tree

2 files changed

+64
-11
lines changed

2 files changed

+64
-11
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
diff --git a/test/connection_logging/connection-logging.json b/test/connection_logging/connection-logging.json
2+
index 72103b3ca..d40cfbb7e 100644
3+
--- a/test/connection_logging/connection-logging.json
4+
+++ b/test/connection_logging/connection-logging.json
5+
@@ -272,13 +272,7 @@
6+
"level": "debug",
7+
"component": "connection",
8+
"data": {
9+
- "message": "Connection closed",
10+
- "driverConnectionId": {
11+
- "$$type": [
12+
- "int",
13+
- "long"
14+
- ]
15+
- },
16+
+ "message": "Connection pool closed",
17+
"serverHost": {
18+
"$$type": "string"
19+
},
20+
@@ -287,15 +281,20 @@
21+
"int",
22+
"long"
23+
]
24+
- },
25+
- "reason": "Connection pool was closed"
26+
+ }
27+
}
28+
},
29+
{
30+
"level": "debug",
31+
"component": "connection",
32+
"data": {
33+
- "message": "Connection pool closed",
34+
+ "message": "Connection closed",
35+
+ "driverConnectionId": {
36+
+ "$$type": [
37+
+ "int",
38+
+ "long"
39+
+ ]
40+
+ },
41+
"serverHost": {
42+
"$$type": "string"
43+
},
44+
@@ -304,7 +303,8 @@
45+
"int",
46+
"long"
47+
]
48+
- }
49+
+ },
50+
+ "reason": "Connection pool was closed"
51+
}
52+
}
53+
]

test/connection_logging/connection-logging.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,7 @@
272272
"level": "debug",
273273
"component": "connection",
274274
"data": {
275-
"message": "Connection closed",
276-
"driverConnectionId": {
277-
"$$type": [
278-
"int",
279-
"long"
280-
]
281-
},
275+
"message": "Connection pool closed",
282276
"serverHost": {
283277
"$$type": "string"
284278
},
@@ -287,15 +281,20 @@
287281
"int",
288282
"long"
289283
]
290-
},
291-
"reason": "Connection pool was closed"
284+
}
292285
}
293286
},
294287
{
295288
"level": "debug",
296289
"component": "connection",
297290
"data": {
298-
"message": "Connection pool closed",
291+
"message": "Connection closed",
292+
"driverConnectionId": {
293+
"$$type": [
294+
"int",
295+
"long"
296+
]
297+
},
299298
"serverHost": {
300299
"$$type": "string"
301300
},
@@ -304,7 +303,8 @@
304303
"int",
305304
"long"
306305
]
307-
}
306+
},
307+
"reason": "Connection pool was closed"
308308
}
309309
}
310310
]

0 commit comments

Comments
 (0)