File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ impl DbConnection {
65
65
connection_string == self . connection_string
66
66
}
67
67
68
+ #[ tracing:: instrument( name = "Closing DB Pool" , skip( self ) ) ]
68
69
pub ( crate ) async fn close ( self ) {
69
70
let _ = self . close_tx . send ( ( ) ) ;
70
71
let _ = self . schema_update_handle . await ;
Original file line number Diff line number Diff line change @@ -227,18 +227,16 @@ impl LanguageServer for LspServer {
227
227
228
228
#[ tracing:: instrument( name = "shutdown" , skip( self ) ) ]
229
229
async fn shutdown ( & self ) -> jsonrpc:: Result < ( ) > {
230
- tracing:: info!( "Shutting down session..." ) ;
231
230
self . session . shutdown ( ) . await ;
232
-
233
- tracing:: info!( "Shutting down debouncer..." ) ;
234
231
self . debouncer . shutdown ( ) . await ;
235
232
236
233
self . client
237
- . log_message ( MessageType :: INFO , "Postgres LSP terminated." )
234
+ . send_notification :: < ShowMessage > ( ShowMessageParams {
235
+ message : "Shutdown successful." . into ( ) ,
236
+ typ : MessageType :: INFO ,
237
+ } )
238
238
. await ;
239
239
240
- tracing:: info!( "Shutdown successful." ) ;
241
-
242
240
Ok ( ( ) )
243
241
}
244
242
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ impl Session {
28
28
}
29
29
}
30
30
31
+ #[ tracing:: instrument( name = "Shutting down Session" , skip( self ) ) ]
31
32
pub async fn shutdown ( & self ) {
32
33
let mut db = self . db . write ( ) . await ;
33
34
let db = db. take ( ) ;
You can’t perform that action at this time.
0 commit comments