File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @gitbook/integration-gitlab ' : patch
3+ ---
4+
5+ Add logs
Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ export async function proxyRequest(
345345 const proxyUrl = new URL ( context . environment . secrets . PROXY_URL ) ;
346346
347347 proxyUrl . searchParams . set ( 'target' , url ) ;
348+ logger . info ( `Proxying request to ${ proxyUrl . toString ( ) } , original target: ${ url } ` ) ;
348349
349350 return fetch ( proxyUrl . toString ( ) , {
350351 ...options ,
@@ -379,7 +380,7 @@ export async function shouldUseProxy(context: GitLabRuntimeContext): Promise<boo
379380
380381 return flag . isEnabled ;
381382 } catch ( e ) {
382- logger . error ( 'Error checking Reflag feature flag:' , e ) ;
383+ logger . debug ( 'Error checking Reflag feature flag:' , e ) ;
383384 return false ;
384385 }
385386}
You can’t perform that action at this time.
0 commit comments