File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,11 @@ export const CypherFactory: FactoryProvider<Connection> = {
97
97
} else if (
98
98
( level === LogLevel . WARNING &&
99
99
message . includes ( 'Failed to connect to server' ) ) ||
100
- ( level === LogLevel . ERROR &&
101
- message . includes (
102
- 'experienced a fatal error {"code":"ServiceUnavailable","name":"Neo4jError"}' ,
103
- ) )
100
+ ( level === LogLevel . ERROR && message . includes ( '"retriable":true' ) )
104
101
) {
105
- // Change connection failure messages to debug.
106
- // Connection failures are thrown so they will get logged
107
- // in exception handling (if they are not handled, i.e. retries/transactions) .
102
+ // Change retriable failure messages to debug.
103
+ // These errors, like connection failures, will ultimately be thrown
104
+ // (and logged that way) after retries are exhausted .
108
105
// Otherwise, these are misleading as they aren't actual problems.
109
106
driverLogger . log ( LogLevel . DEBUG , message ) ;
110
107
} else {
You can’t perform that action at this time.
0 commit comments