Skip to content

Commit 3b4357e

Browse files
committed
PYTHON-5493 Add a patch for the log order difference (mongodb#2473)
(cherry picked from commit e44ece0)
1 parent aa0b920 commit 3b4357e

File tree

2 files changed

+115
-16
lines changed

2 files changed

+115
-16
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
diff --git a/test/connection_logging/connection-logging.json b/test/connection_logging/connection-logging.json
2+
index d40cfbb7e..5799e834d 100644
3+
--- a/test/connection_logging/connection-logging.json
4+
+++ b/test/connection_logging/connection-logging.json
5+
@@ -272,7 +272,13 @@
6+
"level": "debug",
7+
"component": "connection",
8+
"data": {
9+
- "message": "Connection pool closed",
10+
+ "message": "Connection closed",
11+
+ "driverConnectionId": {
12+
+ "$$type": [
13+
+ "int",
14+
+ "long"
15+
+ ]
16+
+ },
17+
"serverHost": {
18+
"$$type": "string"
19+
},
20+
@@ -281,20 +287,15 @@
21+
"int",
22+
"long"
23+
]
24+
- }
25+
+ },
26+
+ "reason": "Connection pool was closed"
27+
}
28+
},
29+
{
30+
"level": "debug",
31+
"component": "connection",
32+
"data": {
33+
- "message": "Connection closed",
34+
- "driverConnectionId": {
35+
- "$$type": [
36+
- "int",
37+
- "long"
38+
- ]
39+
- },
40+
+ "message": "Connection pool closed",
41+
"serverHost": {
42+
"$$type": "string"
43+
},
44+
@@ -303,8 +304,7 @@
45+
"int",
46+
"long"
47+
]
48+
- },
49+
- "reason": "Connection pool was closed"
50+
+ }
51+
}
52+
}
53+
]
54+
@@ -446,22 +446,6 @@
55+
}
56+
}
57+
},
58+
- {
59+
- "level": "debug",
60+
- "component": "connection",
61+
- "data": {
62+
- "message": "Connection pool cleared",
63+
- "serverHost": {
64+
- "$$type": "string"
65+
- },
66+
- "serverPort": {
67+
- "$$type": [
68+
- "int",
69+
- "long"
70+
- ]
71+
- }
72+
- }
73+
- },
74+
{
75+
"level": "debug",
76+
"component": "connection",
77+
@@ -514,6 +498,22 @@
78+
]
79+
}
80+
}
81+
+ },
82+
+ {
83+
+ "level": "debug",
84+
+ "component": "connection",
85+
+ "data": {
86+
+ "message": "Connection pool cleared",
87+
+ "serverHost": {
88+
+ "$$type": "string"
89+
+ },
90+
+ "serverPort": {
91+
+ "$$type": [
92+
+ "int",
93+
+ "long"
94+
+ ]
95+
+ }
96+
+ }
97+
}
98+
]
99+
}

test/connection_logging/connection-logging.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -446,22 +446,6 @@
446446
}
447447
}
448448
},
449-
{
450-
"level": "debug",
451-
"component": "connection",
452-
"data": {
453-
"message": "Connection pool cleared",
454-
"serverHost": {
455-
"$$type": "string"
456-
},
457-
"serverPort": {
458-
"$$type": [
459-
"int",
460-
"long"
461-
]
462-
}
463-
}
464-
},
465449
{
466450
"level": "debug",
467451
"component": "connection",
@@ -514,6 +498,22 @@
514498
]
515499
}
516500
}
501+
},
502+
{
503+
"level": "debug",
504+
"component": "connection",
505+
"data": {
506+
"message": "Connection pool cleared",
507+
"serverHost": {
508+
"$$type": "string"
509+
},
510+
"serverPort": {
511+
"$$type": [
512+
"int",
513+
"long"
514+
]
515+
}
516+
}
517517
}
518518
]
519519
}

0 commit comments

Comments
 (0)