Skip to content

Commit 290d015

Browse files
jamsdenclaude
andcommitted
chore: remove diagnostic logging from auth dispatch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0a89bcf commit 290d015

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

OSLCClient.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,9 @@ export default class OSLCClient {
223223
if (response?.config?._oslcAuthHandled) {
224224
return response;
225225
}
226-
console.log(`[OSLCClient] interceptor: status=${response?.status} url=${response?.config?.url?.substring(0, 80)}`);
227226
return this._handleAuthDispatch(response, 0);
228227
},
229228
async error => {
230-
console.log(`[OSLCClient] interceptor error: ${error?.message} status=${error?.response?.status} url=${error?.config?.url?.substring(0, 80)}`);
231229
return Promise.reject(error);
232230
}
233231
);
@@ -254,9 +252,6 @@ export default class OSLCClient {
254252
const status = response?.status;
255253
const location = headers['location'];
256254

257-
// DEBUG: trace auth dispatch decisions
258-
console.log(`[OSLCClient] _handleAuthDispatch cycle=${cycle} status=${status} url=${originalRequest?.url?.substring(0, 80)} authMsg=${authMsg || 'none'} location=${location?.substring(0, 80) || 'none'}`);
259-
260255
// 1. JEE Forms auth challenge
261256
if (authMsg === 'authrequired' && !attempted.includes('jee-forms')) {
262257
attempted.push('jee-forms');
@@ -337,7 +332,6 @@ export default class OSLCClient {
337332
attempted.push('sso-interactive');
338333
try {
339334
const resourceUrl = originalRequest.url;
340-
console.log(`[OSLCClient] Trying interactive SSO callback for ${resourceUrl?.substring(0, 80)}`);
341335
const callbackResult = await this.ssoCallback(resourceUrl);
342336
if (callbackResult) {
343337
if (isNodeEnvironment && CookieJar && callbackResult instanceof CookieJar) {

0 commit comments

Comments
 (0)