mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
fix(oauth): enhance logging to include Notion-Version in fetch requests
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user