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 {
114114function newDriver ( url , config = { } ) {
115115 // left here for debugging purposes
116116 const logging = {
117- level : 'debug' ,
117+ level : ( process . env [ 'NEOLOGLEVEL' ] || 'error' ) . toLowerCase ( ) ,
118118 logger : ( level , msg ) => console . log ( `${ level } : ${ msg } ` )
119119 } ;
120120 // 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 ) ;
124122 return neo4j . driver ( url , sharedNeo4j . authToken , newConfig ) ;
125123}
126124
You can’t perform that action at this time.
0 commit comments