Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/full-turkeys-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/integration-gitlab': patch
---

remove useless logs
4 changes: 1 addition & 3 deletions integrations/gitlab/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,8 @@ async function requestGitLab(
url: URL,
options: RequestInit = {},
): Promise<Response> {
logger.debug(`GitLab API -> [${options.method}] ${url.toString()}`);
// Hardcoded test org, will need to switch to use Reflag for that.
const useProxy = await shouldUseProxy(context);
logger.debug(`GitLab API -> [${options.method}] ${url.toString()}, using proxy: ${useProxy}`);
const response = useProxy
? await proxyRequest(context, url.toString(), {
...options,
Expand Down Expand Up @@ -380,7 +379,6 @@ export async function shouldUseProxy(context: GitLabRuntimeContext): Promise<boo

return flag.isEnabled;
} catch (e) {
logger.debug('Error checking Reflag feature flag:', e);
return false;
}
}