Skip to content

Commit 8571f6c

Browse files
authored
remove some logs (#1041)
1 parent 34bd5c8 commit 8571f6c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changeset/full-turkeys-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-gitlab': patch
3+
---
4+
5+
remove useless logs

integrations/gitlab/src/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,8 @@ async function requestGitLab(
276276
url: URL,
277277
options: RequestInit = {},
278278
): Promise<Response> {
279-
logger.debug(`GitLab API -> [${options.method}] ${url.toString()}`);
280-
// Hardcoded test org, will need to switch to use Reflag for that.
281279
const useProxy = await shouldUseProxy(context);
280+
logger.debug(`GitLab API -> [${options.method}] ${url.toString()}, using proxy: ${useProxy}`);
282281
const response = useProxy
283282
? await proxyRequest(context, url.toString(), {
284283
...options,
@@ -380,7 +379,6 @@ export async function shouldUseProxy(context: GitLabRuntimeContext): Promise<boo
380379

381380
return flag.isEnabled;
382381
} catch (e) {
383-
logger.debug('Error checking Reflag feature flag:', e);
384382
return false;
385383
}
386384
}

0 commit comments

Comments
 (0)