File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,11 @@ class StubServer {
114
114
function newDriver ( url , config = { } ) {
115
115
// left here for debugging purposes
116
116
const logging = {
117
- level : 'debug' ,
117
+ level : ( process . env [ 'NEOLOGLEVEL' ] || 'error' ) . toLowerCase ( ) ,
118
118
logger : ( level , msg ) => console . log ( `${ level } : ${ msg } ` )
119
119
} ;
120
120
// boltstub currently does not support encryption, create driver with encryption turned off
121
- const newConfig = Object . assign ( { encrypted : 'ENCRYPTION_OFF' } , config ) ;
122
- // use for logging enabled
123
- // const newConfig = Object.assign({encrypted: 'ENCRYPTION_OFF', logging}, config);
121
+ const newConfig = Object . assign ( { encrypted : 'ENCRYPTION_OFF' , logging } , config ) ;
124
122
return neo4j . driver ( url , sharedNeo4j . authToken , newConfig ) ;
125
123
}
126
124
You can’t perform that action at this time.
0 commit comments