@@ -24,13 +24,10 @@ type WarnLogParams = LogParams & { err?: Error };
2424
2525class CustomLogger implements Logger {
2626 trace ( { message, args } : LogParams ) {
27- logger . debug ( message , args ) ;
27+ logger . info ( message , args ) ;
2828 }
2929 debug ( { message, args } : LogParams ) {
30- if ( message . includes ( 'Query:' ) && args ?. response_status === 200 ) {
31- return ;
32- }
33- logger . debug ( message , args ) ;
30+ logger . info ( message , args ) ;
3431 }
3532 info ( { message, args } : LogParams ) {
3633 logger . info ( message , args ) ;
@@ -89,7 +86,7 @@ const cleanQuery = (query?: string) =>
8986 ? query . replace ( / \n / g, '' ) . replace ( / \s + / g, ' ' ) . trim ( )
9087 : undefined ;
9188
92- async function withRetry < T > (
89+ export async function withRetry < T > (
9390 operation : ( ) => Promise < T > ,
9491 maxRetries = 3 ,
9592 baseDelay = 500 ,
@@ -157,6 +154,13 @@ export const ch = new Proxy(originalCh, {
157154 } ) ;
158155 }
159156
157+ if ( property === 'command' ) {
158+ return ( ...args : any [ ] ) =>
159+ withRetry ( ( ) => {
160+ return value . apply ( target , args ) ;
161+ } ) ;
162+ }
163+
160164 return value ;
161165 } ,
162166} ) ;
0 commit comments