@@ -67,25 +67,26 @@ export class NeovimClient extends Neovim {
6767 resp : any ,
6868 ...restArgs : any [ ]
6969 ) {
70- this . logger . info ( 'handleRequest: ' , method ) ;
7170 // If neovim API is not generated yet and we are not handle a 'specs' request
7271 // then queue up requests
7372 //
7473 // Otherwise emit as normal
7574 if ( ! this . isApiReady && method !== 'specs' ) {
75+ this . logger . info ( 'handleRequest (queued): %s' , method ) ;
7676 this . requestQueue . push ( {
7777 type : 'request' ,
7878 args : [ method , args , resp , ...restArgs ] ,
7979 } ) ;
8080 } else {
81+ this . logger . info ( 'handleRequest: %s' , method ) ;
8182 this . emit ( 'request' , method , args , resp ) ;
8283 }
8384 }
8485
8586 emitNotification ( method : string , args : any [ ] ) {
8687 if ( method . endsWith ( '_event' ) ) {
8788 if ( ! method . startsWith ( 'nvim_buf_' ) ) {
88- this . logger . error ( 'Unhandled event: ' , method ) ;
89+ this . logger . error ( 'Unhandled event: %s ' , method ) ;
8990 return ;
9091 }
9192 const shortName = method . replace ( REGEX_BUF_EVENT , '$1' ) ;
@@ -112,7 +113,7 @@ export class NeovimClient extends Neovim {
112113 }
113114
114115 handleNotification ( method : string , args : VimValue [ ] , ...restArgs : any [ ] ) {
115- this . logger . info ( 'handleNotification: ' , method ) ;
116+ this . logger . info ( 'handleNotification: %s ' , method ) ;
116117 // If neovim API is not generated yet then queue up requests
117118 //
118119 // Otherwise emit as normal
@@ -198,9 +199,13 @@ export class NeovimClient extends Neovim {
198199
199200 return true ;
200201 } catch ( err ) {
201- this . logger . error ( `Could not dynamically generate neovim API: ${ err } ` , {
202- error : err ,
203- } ) ;
202+ this . logger . error (
203+ `Could not dynamically generate neovim API: %s: %O` ,
204+ err . name ,
205+ {
206+ error : err ,
207+ }
208+ ) ;
204209 this . logger . error ( err . stack ) ;
205210 return null ;
206211 }
0 commit comments