@@ -81,7 +81,7 @@ impl ConnectionBuilder {
81
81
pub fn build ( self ) -> StdResult < ConnectionThreadSafe > {
82
82
let logger = self . base_logger . new_with_component_name :: < Self > ( ) ;
83
83
84
- debug ! ( logger, "Opening SQLite connection" ; "path" => self . connection_path. display( ) ) ;
84
+ debug ! ( logger, "Opening SQLite connection" ; "path" => self . connection_path. display( ) , "options" => ? self . options ) ;
85
85
let connection =
86
86
Connection :: open_thread_safe ( & self . connection_path ) . with_context ( || {
87
87
format ! (
@@ -94,14 +94,12 @@ impl ConnectionBuilder {
94
94
. options
95
95
. contains ( & ConnectionOptions :: EnableWriteAheadLog )
96
96
{
97
- debug ! ( logger, "Enabling SQLite Write Ahead Log journal mode" ) ;
98
97
connection
99
98
. execute ( "pragma journal_mode = wal; pragma synchronous = normal;" )
100
99
. with_context ( || "SQLite initialization: could not enable WAL." ) ?;
101
100
}
102
101
103
102
if self . options . contains ( & ConnectionOptions :: EnableForeignKeys ) {
104
- debug ! ( logger, "Enabling SQLite foreign key support" ) ;
105
103
connection
106
104
. execute ( "pragma foreign_keys=true" )
107
105
. with_context ( || "SQLite initialization: could not enable FOREIGN KEY support." ) ?;
@@ -113,7 +111,6 @@ impl ConnectionBuilder {
113
111
. options
114
112
. contains ( & ConnectionOptions :: ForceDisableForeignKeys )
115
113
{
116
- debug ! ( logger, "Force disabling SQLite foreign key support" ) ;
117
114
connection
118
115
. execute ( "pragma foreign_keys=false" )
119
116
. with_context ( || "SQLite initialization: could not disable FOREIGN KEY support." ) ?;
0 commit comments