File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -176,19 +176,27 @@ impl DbFsQueries {
176
176
PgTimeTz :: type_info ( ) . into ( ) ,
177
177
<str as Type < Postgres > >:: type_info ( ) . into ( ) ,
178
178
] ;
179
+ log:: debug!(
180
+ "Preparing the database filesystem was_modified_query: {}" ,
181
+ was_modified_query
182
+ ) ;
179
183
db. prepare_with ( & was_modified_query, param_types) . await
180
184
}
181
185
182
186
async fn make_read_file_query (
183
187
db : & Database ,
184
188
db_kind : AnyKind ,
185
189
) -> anyhow:: Result < AnyStatement < ' static > > {
186
- let was_modified_query = format ! (
190
+ let read_file_query = format ! (
187
191
"SELECT contents from sqlpage_files WHERE path = {}" ,
188
192
make_placeholder( db_kind, 1 ) ,
189
193
) ;
190
194
let param_types: & [ AnyTypeInfo ; 1 ] = & [ <str as Type < Postgres > >:: type_info ( ) . into ( ) ] ;
191
- db. prepare_with ( & was_modified_query, param_types) . await
195
+ log:: debug!(
196
+ "Preparing the database filesystem read_file_query: {}" ,
197
+ read_file_query
198
+ ) ;
199
+ db. prepare_with ( & read_file_query, param_types) . await
192
200
}
193
201
194
202
async fn file_modified_since_in_db (
You can’t perform that action at this time.
0 commit comments