fix(oauth): enhance logging to include Notion-Version in fetch requests

This commit is contained in:
Steven Enamakel
2026-04-07 19:03:49 -07:00
parent eded18a703
commit ca4eb39e9b
+1 -1
View File
@@ -881,7 +881,7 @@ globalThis.data = {
timeout: options ? options.timeout : undefined,
};
console.log('[oauth.fetch] ' + method + ' ' + proxyUrl + ' (credentialId=' + credentialId + ', encrypted=' + !!clientKey + ')');
console.log('[oauth.fetch] ' + method + ' ' + proxyUrl + ' (credentialId=' + credentialId + ', encrypted=' + !!clientKey + ', Notion-Version=' + (headers['Notion-Version'] || 'none') + ')');
var result = await net.fetch(proxyUrl, fetchOpts);
console.log('[oauth.fetch] response status=' + result.status + ' body_len=' + (result.body ? result.body.length : 0));